Review Board 1.7.22


Add support for pulling HBase columns with prefixes

Review Request #9276 - Created Feb. 3, 2013 and updated

Swarnim Kulkarni
trunk
HIVE-3725
Reviewers
hive
hive-git
Added support for pulling hbase columns just by providing prefixes and a wildcard. So a query now could look something like this:

CREATE EXTERNAL TABLE hive_hbase_test
ROW FORMAT SERDE 'org.apache.hadoop.hive.hbase.HBaseSerDe' 
STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' 
WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,fam1:col*") 
TBLPROPERTIES ("hbase.table.name" = "TEST_HBASE_TABLE");

This would pull in all columns under column family "fam1" which start with "col". This gives a little more flexibility over pull all columns format.
Added unit tests to demonstrate the new functionality. Also made sure that all existing unit tests passed.
Total:
1
Open:
1
Resolved:
0
Dropped:
0
Status:
From:
Review request changed
Updated (July 22, 2013, 1:20 a.m.)
Updated diff with proposed changes.
Ship it!
Posted (July 22, 2013, 5:25 p.m.)
Ship It!