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

使用Kusto命令添加含datetime和timespan的行时触发架构不匹配错误

Kusto异步追加数据Schema不匹配问题修复

问题出在你写的datetime()和time()字面量未用单引号包裹,导致Kusto将这些值解析为字符串类型,而非预期的datetime和timespan类型,最终造成查询Schema与表Schema不匹配。

修正后的执行语句:

.append async Student <| print StudentID = "12345", StudentName = "John", StartTime = datetime('2021-12-06T08:20:02.011052Z'), EndTime = datetime('2022-01-06T11:20:02.011052Z'), Duration = time('00:00:00.0000509')

关键注意点:

  • 在Kusto中,datetime和timespan类型的字面量必须用单引号括起来,否则会被识别为字符串。
  • 确保print语句中每个字段的类型与目标表Student的字段类型完全一致,包括顺序和数据类型。

内容的提问来源于stack exchange,提问作者superninja

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.28 08:46:02