“where”运算符:无法解析名为“<column name>”

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

从 Azure 门户运行心跳查询时出现错误

'where' operator: Failed to resolve column or scalar expression named 'AgeofOldestMissingRequiredUpdate'

azure azure-data-explorer kql heartbeat
1个回答
0
投票

“where”运算符:无法解析名为“列名”的列或标量表达式

此错误可能是多种不同情况的结果。你还没有发布你的查询,但我用像这样的查询遇到了同样的错误

MyTable
| Project Column1, Column2
| where Column3 == "Value"
| Take 100

在我的例子中有第二个错误:

The name '<column>' does not refer to any known column, table, variable or function.

MyTable
的结构确实包含该列!

MyTable
|- Column1
|- Column2
|- Column3

解决方案

我更新了查询,使

project
子句包含在
where
子句中命名的列:

MyTable
| Project Column1, Column2, Column3
| where Column3 == "Value"
| Take 100

然后我可以成功运行我的查询。 :-)

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