drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sudheesh Katkam (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-2843) Reading empty CSV file fails with error (rather than yielding zero rows)
Date Fri, 11 Sep 2015 23:49:46 GMT

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

Sudheesh Katkam resolved DRILL-2843.
------------------------------------
    Resolution: Fixed

Seems to have been fixed. With my reproduction (data.csv is an empty file), I got:

{code}
0: jdbc:drill:zk=local> SELECT * FROM dfs.temp.`data.csv`;
+--+
|  |
+--+
+--+
No rows selected (0.426 seconds)
{code}

> Reading empty CSV file fails with error (rather than yielding zero rows)
> ------------------------------------------------------------------------
>
>                 Key: DRILL-2843
>                 URL: https://issues.apache.org/jira/browse/DRILL-2843
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Text & CSV
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Steven Phillips
>             Fix For: 1.2.0
>
>
> Reading an empty CSV file (an empty file with a name ending with ".csv") fails with an
internal error rather than yielding zero rows:
> > SELECT * FROM `empty_file.csv`;
> Query failed: SYSTEM ERROR: Unexpected exception during fragment initialization: Incoming
endpoints 1 is greater than number of row groups 0
> [4e7c7167-51eb-485c-a07b-d41c2f63a670 on dev-linux2:31010]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> > 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message