customDimension 列名称“first”是否受到限制?

问题描述 投票:0回答:1

无法在“第一个”线上解析查询

所有其他列都可以毫无问题地进行解析,KQL 自定义维度在尝试解析时是否限制使用列名“first”?

这是不起作用的查询:

extend f =  tostring(parse_json(tostring(customDimensions[first])))
azure kql telemetry
1个回答
0
投票

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

输出: enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.