You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Anton Gozhiy (JIRA)" <ji...@apache.org> on 2019/06/25 13:32:00 UTC

[jira] [Updated] (DRILL-5554) Wrong error type for "SELECT a" from a CSV file without headers

     [ https://issues.apache.org/jira/browse/DRILL-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anton Gozhiy updated DRILL-5554:
--------------------------------
    Fix Version/s: 1.17.0

> Wrong error type for "SELECT a" from a CSV file without headers
> ---------------------------------------------------------------
>
>                 Key: DRILL-5554
>                 URL: https://issues.apache.org/jira/browse/DRILL-5554
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.10.0
>            Reporter: Paul Rogers
>            Priority: Trivial
>             Fix For: 1.17.0
>
>
> Create a CSV file without headers:
> {code}
> 10,foo,bar
> {code}
> Use a CSV storage plugin configured to not skip the first line and not read headers.
> Then, issue the following query:
> {code}
> SELECT a FROM `dfs.data.example.csv`
> {code}
> The result is correct: an error:
> {code}
> org.apache.drill.common.exceptions.UserRemoteException: 
> DATA_READ ERROR: Selected column 'a' must have name 'columns' or must be plain '*'
> {code}
> But, the type of error is wrong. This is not a data read error: the file read just fine. The problem is a semantic error: a query form that is not compatible wth the storage plugin.
> Suggest using {{UserException.unsupportedError()}} instead since the user is asking the plugin to do something that the plugin does not support.



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