Skip to content

Support Java client #30

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Support Java client #30

wants to merge 1 commit into from

Conversation

nkzawa
Copy link
Contributor

@nkzawa nkzawa commented Apr 22, 2020

#17

Basic operations work but querying fails with the following error yet:

java.lang.IllegalArgumentException: sortedRanges
        at com.azure.cosmos.implementation.routing.RoutingMapProviderHelper.getOverlappingRanges(RoutingMapProviderHelper.java:92)
        at com.azure.cosmos.implementation.query.DefaultDocumentQueryExecutionContext.getTargetPartitionKeyRanges(DefaultDocumentQueryExecutionContext.java:118)
        at com.azure.cosmos.implementation.query.DocumentQueryExecutionContextFactory.lambda$createDocumentQueryExecutionContextAsync$1(DocumentQueryExecutionContextFactory.java:122)
...

@asleire
Copy link
Contributor

asleire commented Apr 28, 2020

Hi, cool project :) Trying to make this work with the C# SDK, I had to make this fix I suspect is required here too: asleire@4945c1e

@nkzawa nkzawa mentioned this pull request Apr 29, 2020
@nkzawa
Copy link
Contributor Author

nkzawa commented May 4, 2020

Seems changing maxInclusive to maxExclusive does not fix the error. Maybe need other fixes as well.

@mbhaskar
Copy link

mbhaskar commented Sep 2, 2020

@nkzawa You should not see this error if you set a partition key to the query options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants