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

CSV 'columns' array is incorrectly case sensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.14.0
    • 1.15.0
    • None

    Description

      Perform the following query on a CSV file without column headers:

      SELECT columns[0] FROM `yourFile.csv`
      

      In Drill, column names are supposed to be case insensitive. So, let's try upper case:

      SELECT COLUMNS[0] FROM `yourFile.csv`;
      Error: DATA_READ ERROR: Selected column 'COLUMNS' must have name 'columns' or must be plain '*'
      

      Expected `columns` to be case insensitive like other CSV columns and SQL keywords.

      Attachments

        Issue Links

          Activity

            People

              arina Arina Ielchiieva
              Paul.Rogers Paul Rogers
              Vitalii Diravka Vitalii Diravka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: