Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8320

Prevent Infinite Pagination for Index Paginator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.21.0
    • 1.21.0
    • Storage - HTTP
    • None

    Description

      In some cases that use keyset/index pagination, if the API does not have a boolean column that indicates when to stop, Drill will send requests until the API stops returning data.  This PR fixes this by making the boolean parameter optional.  

      If that parameter is not present, if the index result is blank or the same as the previous request, pagination will end.

      Note, if the pagination parameters are buried in nested objects, this cannot be configured with a dataPath.  If the user uses a dataPath, pagination will stop at the first page.

      Attachments

        Activity

          People

            cgivre Charles Givre
            cgivre Charles Givre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: