azure - 排序方式在 Azure Web 文档资源管理器中不起作用

标签 azure azure-cosmosdb

我正在尝试在 Azure Web 文档资源管理器中查询 documentdb。问题是 Order By 似乎不再起作用了。

例如以下查询:

SELECT * FROM c
WHERE c.type="myType" ORDER BY c.createdDate 

当询问时,我收到红色警报,指出:

Failed to get documents. Please try again.

如果我删除 Order By ,它就可以正常工作。 知道为什么使用 Order By 查询不再起作用吗?

最佳答案

Any idea why it doesn't work anymore to query with Order By?

当属性以最大精度 (-1) 进行范围索引时,只能针对数字字符串属性指定排序依据。更多详情请引用document

You also cannot perform the following:

Order By with internal string properties like id, _rid, and _self (coming soon).

Order By with properties derived from the result of an intra-document join (coming soon).

Order By multiple properties (coming soon).

Order By with queries on databases, collections, users, permissions or attachments (coming soon).

Order By with computed properties e.g. the result of an expression or a UDF/built-in function

关于azure - 排序方式在 Azure Web 文档资源管理器中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43521926/

相关文章:

azure - Azure IoT Hub可以注册多少台设备?

Linux 上的 Azure Web 应用程序突然停止工作

azure - 无法识别正确的 COSMOS DB SQL SELECT 语法来检查坐标(点)是否在多边形内

azure - 创建新的 Azure Cosmos DB 时缺少位置选项

Azure DevOps 发布管道 - 如何使用 Azure Powershell 设置和传递管道中变量的值

azure - 访问 Cosmos DB 文档的授权 token

asp.net - 文件将文件上传到 Azure Blob 存储

azure - 如何禁用azure cosmos db连续备份

azure-functions - Azure Function App CosmosDbTrigger 给出空参数错误

c# - CosmosDb - 写入操作导致错误。错误=16500