【发布时间】:2021-02-20 04:26:58
【问题描述】:
我正在尝试对存储在数组中的项目列表运行自定义函数,并且我正在查看 KQL 中的范围运算符。
这是我的代码:`
let myfunction = (lot:string){T|where id=lot};
union( range x from 1 to 50 step 1
|invoke myfunction(strcat("test-",x))
)
` 但我收到无法解析名为“x”的标量的失败消息。我想做的是重复 myfunction 50 次,然后使用 union 合并每次迭代的结果。如果这不能通过使用范围运算符来完成,是否有替代方法来实现我正在寻找的结果?
谢谢,
【问题讨论】: