Closed apescione closed 4 years ago
@apescione , thanks for reporting this, we are aware of the issue and trying to fix it as soon as possible. Will update this thread once its fixed.
Offset limit is not totally supported in V3. Is related to this https://github.com/Azure/azure-cosmosdb-java/issues/126
Support added in this PR https://github.com/Azure/azure-sdk-for-java/pull/5365
Using OFFSET and LIMIT in query, Driver V3 returns wrong result, instead the V2 returns correct one. I've tested the following version: V3 version 3.2.1 V2 version 2.6.1
The example query is: SELECT c.id FROM c order by c.id offset 7 limit 4
Both V2 and Azure portal reply with the same correct result:
Instead, SDK V3 returns this RECORDS plus other 7 records before:
Here the Code snipped for V2:
And Here the code of V3 (That probably there is a bug):
Could these issues be linking to #256?