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

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

git.commit.id.abbrev=8c66525

Ran the same query:
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;

Fails with the following error:
Query failed: Failure while running fragment.  
[8f994b16-ec2e-42e2-af02-9dda78eaf25e]

Error: exception while executing query: Failure while trying to get next result 
batch. (state=,code=0)

The server log shows that it is still failing with NumberFormat Exception:
java.lang.NumberFormatException: 
org.apache.drill.exec.test.generated.ProjectorGen10.doEval(ProjectorTemplate.java:198)
 ~[na:na]
org.apache.drill.exec.test.generated.ProjectorGen10.projectRecords(ProjectorTemplate.java:66)
 ~[na:na]
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.doWork(ProjectRecordBatch.java:134)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:78)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:120)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:116)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:59) 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:98)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:49) 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:105)
 
~[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-incubating-SNAPSHOT]
org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:250)
 
[drill-java-exec-0.5.0-incubating-SNAPSHOT-rebuffed.jar:0.5.0-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
>            Assignee: Suresh Ollala
>             Fix For: 0.5.0
>
>
> 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)

Reply via email to