我正在尝试在 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/