【发布时间】:2021-08-27 16:54:06
【问题描述】:
在 Azure 数据资源管理器 (Kusto) 中,如何从存储的函数中将行提取到表中?
我可以使用以下方法将一行摄取到表中:
.ingest inline into table TestTable <|
"valueForColumn1", "valueForColumn2"
我可以创建一个存储函数:
.create-or-alter function with (docstring="TestTable" folder="path\\folder") fn_TestTable(col1:string, col2:string)
{
TestTable | take 5
}
但是当我尝试将存储的函数更改为使用.ingest 命令时,我收到句号的语法错误(令牌.)
以下命令显示语法错误:
.create-or-alter function with (docstring="TestTable" folder="path\\folder") fn_TestTable(col1:string, col2:string)
{
.ingest inline into table TestTable <|
"valueForColumn1", "valueForColumn2"
}
这是不可能的还是我弄错了?
对于上下文,我们的团队希望向其他团队公开写入 TestTable 的能力,但我们希望在存储的函数中执行一些验证,而不是让其他团队访问 TestTable 以直接写入表其他团队通过存储函数写入 TestTable。是这个标准还是有更好的方法?
【问题讨论】:
标签: azure-data-explorer kql data-ingestion kusto-explorer