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

HTTP UDFs do not correctly handle results rooted in an array

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.20.2
    • None
    • Storage - HTTP
    • None

    Description

      When the HTTP udfs http_get or http_request are used against an endpoint that returns JSON data that is rooted with an array (or line-delimited object sequence) then they return consecutive objects from that array with each invocation until the end is reached, after which the next invocation fails with an error. This can be reproduced by having a web server serve Drill's donuts.json.

      In addition, each invocation of these UDFs leaks a single file descriptor.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dzamo James Turton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: