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

Krystal commented on DRILL-1039:
--------------------------------

git.commit.id.abbrev=3ea8eb5

I can still reproduce the problem.  Maybe because of my dataset?  Attached is 
the data I used for this test.  I created the table in hbase as follows:
create 'voter', 'onecf', 'twocf', 'threecf', 'fourcf', {SPLITS => 
['1','2','3','4','5','6','7','8','9']}
I used pig to load the data into table voter:
register /opt/mapr/hbase/hbase-0.94.17/lib/zookeeper-3.4.5-mapr-1401.jar;
register /opt/mapr/hbase/hbase-0.94.17/hbase-0.94.17-mapr-1403-SNAPSHOT.jar;
register /opt/mapr/hbase/hbase-0.94.17/lib/guava-11.0.2.jar;

A = LOAD '/drill/testdata/hbase/votertab' AS 
(id,name,age,registration,contributions,voterzone,create_date);
STORE A INTO 'voter' USING 
org.apache.pig.backend.hadoop.hbase.HBaseStorage('onecf:name twocf:age 
twocf:registration threecf:contributions threecf:voterzone fourcf:create_date');



> Queries against hbase table with multiple regions return null 
> --------------------------------------------------------------
>
>                 Key: DRILL-1039
>                 URL: https://issues.apache.org/jira/browse/DRILL-1039
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - HBase
>         Environment: 
>            Reporter: Krystal
>         Attachments: votertab
>
>
> git.commit.id.abbrev=894037a
> This is a regression. Ran the following query in sqlline:
> 0: jdbc:drill:schema=dfs> select cast(row_key as integer) voter_id, 
> cast(onecf['name'] as varchar(30)) 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 hbase.voter where row_key = 5;
> +------------+------------+------------+--------------+---------------+------------+-------------+
> |  voter_id  |    name    |    age     | registration | contributions | 
> voterzone  | create_date |
> +------------+------------+------------+--------------+---------------+------------+-------------+
> | 5          | null       | null       | null         | null          | null  
>      | 1970-01-01 00:00:00.0 |
> +------------+------------+------------+--------------+---------------+------------+-------------+
> The same query returns expected data against an hbase table that resides in 
> single partition. 



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

Reply via email to