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

CSV 'columns' array is incorrectly case sensitive

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.14.0
    • Fix Version/s: 1.15.0
    • Component/s: None
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: