我可以在Kusto用户定义函数中使用表格参数吗



基本上我想把一组字段值传递给一个函数,这样我就可以在/!在运营商中。我更希望能够使用以前查询的结果,而不是手动构造集合。

如:

let today = exception | where EventInfo_Time > ago(1d) | project exceptionMessage;
MyAnalyzeFunction(today)

那么MyAnalyzeFunction的签名是什么?

请参阅:https://learn.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions

例如,下面将返回一个具有值为23的单列(y(的表:

let someTable = range x from 2 to 10 step 1
;
let F = (T:(x:long)) 
{
range y from 1 to 3 step 1
| where y in (T)
}
;
F(someTable)

最新更新