You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 01:10:29