-
Notifications
You must be signed in to change notification settings - Fork 491
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
ORDER BY Arrays and Objects #853
Conversation
Cosmos is schema less -> in query a single "ORDER BY " might result with different data-types for , hence the type ordering. Is my understanding right? Is the order defined unique to Cosmos or some standard defined? (ex: Cassandra/Mongo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check comments
…om/Azure/azure-cosmos-dotnet-v3 into users/brchon/OrderByArrayAndObject
Please create feature issues on non .NET SDK repos' for tracking. |
ORDER BY Arrays and Objects
Description
Adds support to ORDER BY Arrays and Objects. The algorithm is arrays come before objects but after strings. comparing two arrays or two objects is done by comparing their hashes.
Internal PR:
https://msdata.visualstudio.com/_git/CosmosDB/commit/952ea1a412850770e417b892c25a11272fd119cb?path=%2FProduct%2FSDK%2F.net%2FMicrosoft.Azure.Documents.Client%2FQuery%2FDistinctMap.UnorderedDistinctMap.cs&gridItemType=2&mpath=%2FProduct%2FSDK%2F.net%2FMicrosoft.Azure.Documents.Client%2FQuery%2FDistinctMap.UnorderedDistinctMap.cs&opath=%2FProduct%2FSDK%2F.net%2FMicrosoft.Azure.Documents.Client%2FQuery%2FDistinctMap.UnorderedDistinctMap.cs&mversion=GC952ea1a412850770e417b892c25a11272fd119cb&oversion=GCec11d7d0b0246a5f3d53536f0e10d0d2ed50d0e5&_a=compare
Type of change
Please delete options that are not relevant.