在Cosmos DB Data Explorer中无法运行最基本的查询?

huangapple go评论73阅读模式
英文:

Unable to run the most basic query in cosmosdb Data Explorer?

问题

新面板中的默认查询是select * from c

但是当我在新面板中创建新查询时,它不起作用。

错误信息:

> 消息:{"errors":[{"severity":"错误","location":{"start":15,"end":16},"code":"SC1001","message":"语法错误,* 附近的语法不正确。"}]} ActivityId: b5f1fde9-f18f-48c3-aa0b-e0dd97067e0f,Microsoft.Azure.Documents.Common/2.14.0

更新 这个操作成功了还是失败了?存在矛盾的信息。如果成功了:

  • 为什么会有错误消息?
  • 那12行在哪里?

在Cosmos DB Data Explorer中无法运行最基本的查询?

英文:

The default query in a new panel is select * from c

在Cosmos DB Data Explorer中无法运行最基本的查询?

But when I create a new query in a new panel , that does not work?

在Cosmos DB Data Explorer中无法运行最基本的查询?

Error text:

> Message: {"errors":[{"severity":"Error","location":{"start":15,"end":16},"code":"SC1001","message":"Syntax error, incorrect syntax near '*'."}]} ActivityId: b5f1fde9-f18f-48c3-aa0b-e0dd97067e0f, Microsoft.Azure.Documents.Common/2.14.0

Update Did this work or fail? There are conflicting messages. If it worked:

  • why is there an error message
  • where are those 12 rows?

在Cosmos DB Data Explorer中无法运行最基本的查询?

答案1

得分: 0

这显然是在 AzureCosmosDB 数据资源管理器 中的一个错误。我已经创建了一个新的面板,并成功地在其中显示了结果。实际上,查询内容并不重要,只要是有效的即可。以下是我使用的内容:

SELECT  c.registered ?? ''-'' as registered, c.lastName ?? ''-'' as lastName, 
    c.id, c._ts from c

在发生错误后,数据输出面板不再显示,而是错误会一直保留在 Sql 编辑器选项卡中。请注意,下面的查询与之前的截图中的内容完全相同。但是先前查询的错误仍然显示出来。

我正在 macOS 上使用 Chrome 浏览器。

英文:

This is apparently a bug in the CosmosDB Data Explorer for Azure. I have created a new panel and successfully shown results in it. It does not really matter which query, as long as it is valid. Here is what I used:

SELECT  c.registered ?? '-' as registered, c.lastName ?? '-' as lastName, 
    c.id, c._ts from c

在Cosmos DB Data Explorer中无法运行最基本的查询?

After an error occurs the data output panel no longer is displayed and instead the error remains there .. permanently for that Sql Editor tab. Notice the query below is precisely the same as in the prior screenshot. But the error from a prior query is still shown instead.

I am using chrome on macOS .

在Cosmos DB Data Explorer中无法运行最基本的查询?

huangapple
  • 本文由 发表于 2023年6月22日 11:46:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76528491.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定