Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B3B0107D0 for ; Thu, 29 May 2014 22:52:29 +0000 (UTC) Received: (qmail 16665 invoked by uid 500); 29 May 2014 22:52:29 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 16638 invoked by uid 500); 29 May 2014 22:52:29 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 16629 invoked by uid 99); 29 May 2014 22:52:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2014 22:52:29 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 29 May 2014 22:52:29 +0000 Received: (qmail 15439 invoked by uid 99); 29 May 2014 22:52:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2014 22:52:03 +0000 Date: Thu, 29 May 2014 22:52:03 +0000 (UTC) From: "Krystal (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-862) Select against hbase tables with empty number values fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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)