标题关键字的 Kusto 查询问题
Kusto query issue with title keyword
我假设 title
可能是保留字或类似词,但下面的查询拒绝围绕 c.title
进行解析。不确定查询本身到底有什么问题
AzureActivity
| where CategoryValue == "ResourceHealth" and ResourceProviderValue == "MICROSOFT.COMPUTE"
| where not (ResourceGroup startswith "DATABRICKS-RG")
| extend d=parse_json(Properties)
| extend c = parse_json(tostring(d.eventProperties))
| where c.cause == "PlatformInitiated" and not(c.title == "Live Migration")
显示错误
SYNTAX ERROR
Query could not be parsed at '.' on line [6,48]
Token: .
Line: 6
Position: 48
If issue persists, please open a support ticket.
Request id: 6a4d4bae-41f6-43b4-9657-55fc435acab9
因为 title
是该语言中的保留关键字,您可以将 c.title
替换为 c['title']
。
我假设 title
可能是保留字或类似词,但下面的查询拒绝围绕 c.title
进行解析。不确定查询本身到底有什么问题
AzureActivity
| where CategoryValue == "ResourceHealth" and ResourceProviderValue == "MICROSOFT.COMPUTE"
| where not (ResourceGroup startswith "DATABRICKS-RG")
| extend d=parse_json(Properties)
| extend c = parse_json(tostring(d.eventProperties))
| where c.cause == "PlatformInitiated" and not(c.title == "Live Migration")
显示错误
SYNTAX ERROR
Query could not be parsed at '.' on line [6,48]
Token: .
Line: 6
Position: 48
If issue persists, please open a support ticket.
Request id: 6a4d4bae-41f6-43b4-9657-55fc435acab9
因为 title
是该语言中的保留关键字,您可以将 c.title
替换为 c['title']
。