Skip to content

Cosmos: Complex order by support #16150

@smitpatel

Description

@smitpatel
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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions