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/05/21 15:36:00 UTC

[jira] [Commented] (DRILL-5555) CSV file without headers: "SELECT a" fails, "SELECT columns, a" succeeds

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

Anton Gozhiy commented on DRILL-5555:
-------------------------------------

The issue is fixed in V3 reader for the case with "columns", but the case with star is still reproducible.

> CSV file without headers: "SELECT a" fails, "SELECT columns, a" succeeds
> ------------------------------------------------------------------------
>
>                 Key: DRILL-5555
>                 URL: https://issues.apache.org/jira/browse/DRILL-5555
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Text &amp; CSV
>    Affects Versions: 1.10.0
>            Reporter: Paul Rogers
>            Priority: Minor
>
> Consider the case discussed in DRILL-5554. Do exactly the same setup, but with a slightly different query. The results are much different.
> 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 columns, a FROM `dfs.data.example.csv`
> {code}
> Result:
> {code}
> columns,a
> ["10","foo","bar"],null
> {code}
> Schema:
> {code}
> columns(VARCHAR:REPEATED), 
> a(INT:OPTIONAL)
> {code}
> Since the query in DRILL-5554 fails:
> {code}
> SELECT a FROM ...
> {code}
> Expected the query described here to also fail, for a similar reason.



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