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

And*_*sen 0 kql azure-data-explorer

基本上我想将一组字段值传递给一个函数,以便我可以使用 in/!in 运算符。我更希望能够使用先前查询的结果,而不必手动构造一个集合。

如:

let today = exception | where EventInfo_Time > ago(1d) | project exceptionMessage;
MyAnalyzeFunction(today)
Run Code Online (Sandbox Code Playgroud)

那么 MyAnalyzeFunction 的签名是什么?

Yon*_*i L 5

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

举例来说,下面将返回与单个列(一个表y)与值23

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)
Run Code Online (Sandbox Code Playgroud)