You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Krystal (JIRA)" <ji...@apache.org> on 2014/05/30 00:52:03 UTC

[jira] [Commented] (DRILL-862) Select against hbase tables with empty number values fails

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

Krystal commented on DRILL-862:
-------------------------------

Server Log:

java.lang.NumberFormatException: 
org.apache.drill.exec.test.generated.ProjectorGen289.doEval(ProjectorTemplate.java:365) ~[na:na]
org.apache.drill.exec.test.generated.ProjectorGen289.projectRecords(ProjectorTemplate.java:66) ~[na:na]
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.doWork(ProjectRecordBatch.java:95) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:71) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.next(ProjectRecordBatch.java:83) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:69) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:63) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:47) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.next(ProjectRecordBatch.java:83) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.next(ScreenCreator.java:80) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:98) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]

> Select against hbase tables with empty number values fails 
> -----------------------------------------------------------
>
>                 Key: DRILL-862
>                 URL: https://issues.apache.org/jira/browse/DRILL-862
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - HBase
>            Reporter: Krystal
>
> git.commit.id.abbrev=01bf849
> I have a hbase table that contains empty values for some columns/rows.   This was due to importing data from a file into hbase. For example a get of a row containing empty age value in hbase:
> hbase(main):003:0> get 'voterspaces', '17'
> COLUMN                       CELL                                                                             
>  fourcf:create_date          timestamp=1401380832939, value=2014-06-04 06:49:06                               
>  onecf:name                  timestamp=1401380832939, value=alice garcia                                      
>  threecf:contributions       timestamp=1401380832939, value=468.51                                            
>  threecf:voterzone           timestamp=1401380832939, value=18555                                             
>  twocf:age                   timestamp=1401380832939, value=                                                  
>  twocf:registration          timestamp=1401380832939, value=republican       
> The following query from drill fails due to empty values instead of null:
> select cast(row_key as integer) voter_id, convert_from(onecf['name'], 'UTF8') name, cast(twocf['age'] as integer) age, cast(twocf['registration'] as varchar(20)) registration, cast(threecf['contributions'] as decimal(6,2)) contributions, cast(threecf['voterzone'] as integer) voterzone,cast(fourcf['create_date'] as timestamp) create_date from voterspaces where row_key < 20;
> message: "Failure while running fragment. < NumberFormatException:[  ]"
> From hive, running the same query against a hive table that is mapped to the same hbase table succeeded.   If this how it expected to work in drill, then we should to document it.



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