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

Reading empty CSV file fails with error (rather than yielding zero rows)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: Storage - Text & CSV
    • Labels:
      None

      Description

      Reading an empty CSV file (an empty file with a name ending with ".csv") fails with an internal error rather than yielding zero rows:

      > SELECT * FROM `empty_file.csv`;
      Query failed: SYSTEM ERROR: Unexpected exception during fragment initialization: Incoming endpoints 1 is greater than number of row groups 0

      [4e7c7167-51eb-485c-a07b-d41c2f63a670 on dev-linux2:31010]
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      >

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sphillips Steven Phillips
                Reporter:
                dsbos Daniel Barclay
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: