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

KQL中customDimension的列名'first'是否存在使用限制?

KQL中customDimensions使用'first'作为列名的解析问题

报错信息

查询无法解析,错误出现在行中的'first'位置

问题描述

其他所有列均可正常解析,请问KQL的custom dimensions是否限制使用列名'first'进行解析?

无法运行的查询语句

extend f =  tostring(parse_json(tostring(customDimensions.first)))

解答

'first'是KQL的保留关键字,直接用.符号访问customDimensions.first时,查询引擎会将其识别为关键字而非自定义维度里的字段,从而触发解析错误。

解决方法是改用方括号语法访问该字段,修改后的查询语句如下:

extend f = tostring(parse_json(tostring(customDimensions['first'])))

这样就能正常解析自定义维度中名为'first'的字段了。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.17 22:42:01