Skip to content
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

Pagination is broken when using ORDER BY #125

Open
bankuruprasannakumar opened this issue Nov 12, 2018 · 1 comment
Open

Pagination is broken when using ORDER BY #125

bankuruprasannakumar opened this issue Nov 12, 2018 · 1 comment

Comments

@bankuruprasannakumar
Copy link

bankuruprasannakumar commented Nov 12, 2018

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

@please1984
Copy link

I am in the same situation.
But when I run sql with partition key, I get normal pagination data.

How to read pagination data in sql without partition key?

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

No branches or pull requests

2 participants