Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmos: Complex order by support #16150

Closed
smitpatel opened this issue Jun 19, 2019 · 1 comment
Closed

Cosmos: Complex order by support #16150

smitpatel opened this issue Jun 19, 2019 · 1 comment

Comments

@smitpatel
Copy link
Contributor

SELECT (c["CustomerID"] || c["City"]) AS A
FROM root c
WHERE (c["Discriminator"] = "Customer")
ORDER BY (c["CustomerID"] || c["City"])

gives


Failed to query documents for collection Customer: {"code":400,"body":"{\"code\":\"BadRequest\",\"message\":\"Message: {\\\"errors\\\":[{\\\"severity\\\":\\\"Error\\\",\\\"message\\\":\\\"Unsupported ORDER BY clause. ORDER BY item expression could not be mapped to a document path.\\\"}]}\\r\\nActivityId: 891abdd0-f420-43ff-a843-bf82687d7ff4, Microsoft.Azure.Documents.Common/2.4.0.0\"}","activityId":"891abdd0-f420-43ff-a843-bf82687d7ff4"}
@divega
Copy link
Contributor

divega commented Jun 20, 2019

EF Triage: We don't reason about indexes in the database. We produce the SQL you asked for, and if the index doesn't exists, you will get an error from the database engine.

@divega divega closed this as completed Jun 20, 2019
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants