You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2015/01/04 22:29:45 UTC

[jira] [Commented] (DRILL-1203) Problem selecting by integers when csv file has a header there

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

Jacques Nadeau commented on DRILL-1203:
---------------------------------------

This is a feature request for header handling in the text reader.  Other JIRAs are already open for this.

> Problem selecting by integers when csv file has a header there
> --------------------------------------------------------------
>
>                 Key: DRILL-1203
>                 URL: https://issues.apache.org/jira/browse/DRILL-1203
>             Project: Apache Drill
>          Issue Type: Bug
>         Environment: local
>            Reporter: Winston Chen
>             Fix For: Future
>
>
> If a csv file contains header, the following query:
> select * from dfs.`SIC.csv` where columns[0]=17;
> causes the following exception:
> java.lang.NumberFormatException: sic
> 	at org.apache.drill.exec.test.generated.FiltererGen12.doEval(FilterTemplate2.java:93) ~[na:na]
> 	at org.apache.drill.exec.test.generated.FiltererGen12.filterBatchNoSV(FilterTemplate2.java:95) ~[na:na]
> 	at org.apache.drill.exec.test.generated.FiltererGen12.filterBatch(FilterTemplate2.java:68) ~[na:na]
> CSV content format:
> isic,name
> 1,Crop and animal production hunting and related service activities
> 2,Forestry and logging
> 3,Fishing and aquaculture
> 5,Mining of coal and lignite
> 6,Extraction of crude petroleum and natural gas
> 7,Mining of metal ores



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