Skip to content

Pagination is broken when using ORDER BY  #125

Open

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

Activity

  1. please1984 commented on Nov 22, 2019

    @please1984

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions