drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalii Diravka (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4346) NumberFormatException when casting empty string to int in hbase/maprdb
Date Wed, 03 Feb 2016 12:37:39 GMT
Vitalii Diravka created DRILL-4346:
--------------------------------------

             Summary: NumberFormatException when casting empty string to int in hbase/maprdb
                 Key: DRILL-4346
                 URL: https://issues.apache.org/jira/browse/DRILL-4346
             Project: Apache Drill
          Issue Type: Bug
          Components: Functions - Drill
    Affects Versions: 1.2.0
            Reporter: Vitalii Diravka
            Assignee: Vitalii Diravka


Queries to null values in HBase with no data when casting to Integer results in NumberFormatException:

{code}
Data 

row1,1,2 
row2,,4 
row3,5,6 
row4,7,8 

Create Table 

$ maprcli table create -path /user/cmatta/projects/cmatta_test 
$ maprcli table cf create -path /user/cmatta/projects/cmatta_test -cfname a 

Load into Hbase table: 

hbase org.apache.hadoop.hbase.mapreduce.ImportTsv -Dimporttsv.separator=',' -Dimporttsv.columns=HBASE_ROW_KEY,a:c1,a:c2
/user/cmatta/projects/cmatta_test maprfs:///user/cmatta/projects/testdata_hbase_null 
{code}
{code}
0: jdbc:drill:> select cast(x.`row_key` as varchar(128)) as `row_key`, CAST(x.`a`.`c1`
as INTEGER) from maprfs.cmatta.`cmatta_test` x; 
Error: SYSTEM ERROR: NumberFormatException: 

Fragment 0:0 

[Error Id: 05a0e5ed-d830-4926-a442-569c9d70d0b4 on se-node11.se.lab:31010] (state=,code=0)

{code}



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

Mime
View raw message