azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[BUG][azure-spring-data-cosmos]Use between on partition key not return all datas

Open zhangxj1977 opened this issue 2 years ago • 2 comments

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?

zhangxj1977 avatar Jun 22 '22 00:06 zhangxj1977

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar, @simplynaveen20, @abinav2307

ghost avatar Jun 22 '22 15:06 ghost

@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?

trande4884 avatar Aug 09 '22 18:08 trande4884

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!

ghost avatar Sep 06 '22 20:09 ghost