使用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
相关产品推荐
相关产品推荐

