[Cosmos DB] "sortedRanges" exception when querying Unique Key IN list #19911
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
We are using queryItems method to run a SQL query and query multiple items from Cosmos DB
The SQL Query that we have had is as follows
Here
id
is the partition key. The partition key is hashed based on the first 100 bytes. We haven't migrated to 2k bytes partition hashing yet.To Reproduce
The above Where clause query with IN keyword consistently reproduces the issue.
Expected behavior
The query items API should successfully fetch the records.
Actual behavior
Exception thrown from
RoutingMapProviderHelper
->throw new IllegalArgumentException("sortedRanges");
Environment summary
SDK Version: com.azure:azure-cosmos:4.7.1
Java JDK version: 1.8
OS Version (e.g. Windows, Linux, MacOSX) N/A
Additional context
Similar issue was reported for C# SDK - Azure/azure-cosmos-dotnet-v3#833
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: