【问题标题】:'where' operator: Failed to resolve column or scalar expression named '<column name>'“where”运算符:无法解析名为“<column name>”的列或标量表达式
【发布时间】:2022-03-09 04:58:41
【问题描述】:

从 Azure 门户运行心跳查询时出现错误 'where' operator: Failed to resolve column or scalar expression named 'AgeofOldestMissingRequiredUpdate'

【问题讨论】:

  • 该错误表明您正在尝试引用表中不存在的列。请分享整个查询。
  • 只是为了将其放在这里,请确保标题的值正确 - X-Api-KeyappId

标签: azure azure-data-explorer kql heartbeat


【解决方案1】:

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

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

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

就我而言,出现了第二个错误:

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

MyTables 结构确实包含该列!

MyTable
|- Column1
|- Column2
|- Column3

解决方案

我更新了我的查询,使project 子句包含where 子句中命名的列:

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

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

【讨论】:

  • 我以应有的尊重说 - 短视的傻瓜对问题和答案投了反对票。谢谢超级翡翠。
猜你喜欢
  • 1970-01-01
  • 2021-12-30
  • 1970-01-01
  • 2023-01-02
  • 2013-07-20
  • 2017-09-22
  • 1970-01-01
  • 2016-01-21
  • 2021-09-16
相关资源
最近更新 更多