You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Abhishek Girish (JIRA)" <ji...@apache.org> on 2014/06/14 02:51:01 UTC

[jira] [Commented] (DRILL-986) Explicit cast of empty string to double/integer throws NumberFormatException

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

Abhishek Girish commented on DRILL-986:
---------------------------------------

Just a note: 

This is important since the data being schema less, the only way to create views or work on this data would require an explicit cast. And null-values / empty-strings can exist in dataset. 

> Explicit cast of empty string to double/integer throws NumberFormatException 
> -----------------------------------------------------------------------------
>
>                 Key: DRILL-986
>                 URL: https://issues.apache.org/jira/browse/DRILL-986
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types
>            Reporter: Abhishek Girish
>
> While running TPC-DS queries we hit an issue while reading Parquet. When narrowed down, it was seen to be an issue with explicit cast when data files consist of null/empty strings. 
> SqlLine error:
> > select cast('' as integer) from `/user/root/item.tbl` limit 1;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "7c691e59-6998-4f5d-bd89-0b3635709aea"
> endpoint {
>   address: "drillats2.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while running fragment. < NumberFormatException:[  ]"
> ]
> Error: exception while executing query (state=,code=0)
> 0: jdbc:drill:schema=dfs.drillTestDirTPCDS> select cast('' as double) from `/user/root/item.tbl` limit 1;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "ce1b91bd-1892-434e-88e4-a535541888c0"
> endpoint {
>   address: "drillats2.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while running fragment. < NumberFormatException:[ empty String ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)