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

Sort operator throws NPE on empty record batch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      To reproduce, run simply run a sort test with a record count of 0. A sample test case is available in this branch .

      The issue is that the builder is null when there are zero records. The contract of the RecordBatch interface is not clear; the SVRemover seems to require a schema in this state.

      Attachments

        1. DRILL-293.patch
          0.7 kB
          Ben Becker

        Activity

          People

            benjamin.becker Ben Becker
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: