Azure / Azure/azure-documentdb-java

Pagination is broken when using ORDER BY

Open
#125 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
51
Forks
52
PR merge metrics
No merged PRs in 30d

Description

We are using azure-documentdb java sdk(1.16.2) for accessing cosmos db resource.

When using java sdk to access cosmos db - Pagination is working fine for all the queries except when query contains ORDER BY.

method used in sdk to get response continuation token: *feedResponse.getResponseContinuation()*

OrderByQueryExecutionComponent.getResponseHeaders() function always return null incase of query contains ORDER BY. The headers are not getting passed to the feedResponse object.

NOTE: This is after enable crosspartion query flag as true in feed options

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.