【问题标题】:Azure Data Explorer: How to ingest row into table from within a stored functionAzure 数据资源管理器:如何从存储的函数中将行提取到表中
【发布时间】: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


    【解决方案1】:

    不支持。您可以在以下帖子中找到完整的解释:Not able to have commands in User-Defined functions in Kusto

    【讨论】:

      猜你喜欢
      • 2019-07-09
      • 2021-07-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-06
      • 2015-02-05
      • 1970-01-01
      • 2016-03-30
      相关资源
      最近更新 更多