在Kusto的.create函数中无法使用.set-or-replace的问题求助
解决Kusto函数内使用.set-or-replace的报错问题
Kusto的用户定义函数(UDF)仅支持包含查询语句,无法直接执行.set-or-replace这类以.开头的控制命令,这就是你触发识别错误的核心原因。
解决办法是改用**存储过程(Stored Procedure)**替代函数,存储过程允许在内部执行控制命令,修正后的代码如下:
.create-or-alter stored procedure with (folder = "Validation") SaveValidate() { .set-or-replace ValidationResults with (tags='["new"]') <| Validate }
调用该存储过程的命令:
.execute procedure SaveValidate()
内容的提问来源于stack exchange,提问作者Naga
相关产品推荐
相关产品推荐

