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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • Storage - Text & CSV
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: