You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2018/10/02 13:51:00 UTC

[jira] [Commented] (DRILL-6759) CSV 'columns' array is incorrectly case sensitive

    [ https://issues.apache.org/jira/browse/DRILL-6759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635518#comment-16635518 ] 

Arina Ielchiieva commented on DRILL-6759:
-----------------------------------------

Agree, especially when {{select COLUMNS from `yourFile.csv`}} currently succeeds. 

> CSV 'columns' array is incorrectly case sensitive
> -------------------------------------------------
>
>                 Key: DRILL-6759
>                 URL: https://issues.apache.org/jira/browse/DRILL-6759
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.14.0
>            Reporter: Paul Rogers
>            Priority: Minor
>             Fix For: 1.15.0
>
>
> Perform the following query on a CSV file without column headers:
> {noformat}
> SELECT columns[0] FROM `yourFile.csv`
> {noformat}
> In Drill, column names are supposed to be case insensitive. So, let's try upper case:
> {noformat}
> SELECT COLUMNS[0] FROM `yourFile.csv`;
> Error: DATA_READ ERROR: Selected column 'COLUMNS' must have name 'columns' or must be plain '*'
> {noformat}
> Expected {{`columns`}} to be case insensitive like other CSV columns and SQL keywords.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)