azure-sdk-for-java
azure-sdk-for-java copied to clipboard
[BUG][azure-spring-data-cosmos]Use between on partition key not return all datas
Describe the bug Used version.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-spring-data-cosmos</artifactId>
<version>3.20.0</version>
</dependency>
When I passed a between criteria on a partition key, if it has multiple values, then only return one partition results.
Code Snippet
Criteria.getInstance(CriteriaType.BETWEEN, "date", List.of("2022/06/01", "2022/06/10"), Part.IgnoreCaseType.NEVER);
I see that isCrossPartitionQuery doesn't process between but only in criteria. Is that I'm using the wrong method?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @simplynaveen20, @abinav2307
@zhangxj1977 can you please provide a little more info? Mainly, what is the query you are executing after creating your criteria? And it seems you are saying you expect > 1 result from your query but you are only getting 1 result back?
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!