无法在“第一个”线上解析查询
所有其他列都可以毫无问题地进行解析,KQL 自定义维度在尝试解析时是否限制使用列名“first”?
这是不起作用的查询:
extend f = tostring(parse_json(tostring(customDimensions[first])))
customDimension 列名称“first”是否受到限制?
没有customDimension列名称'first'不受限制。由于
first
是列名称,因此尝试在引号 'first'
中提及它,它会成功运行,如下面的输出所示。
let sampleData = datatable(customDimensions: dynamic)
[
dynamic({"first": "John", "last": "Doe", "age": 30}),
dynamic({"first": "Jane", "last": "Smith", "age": 25})
];
sampleData
| extend firstName = tostring(parse_json(tostring(customDimensions['first'])))
| project firstName
输出: