Add support for pulling HBase columns with prefixes
Review Request #9276 - Created Feb. 3, 2013 and updated
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.
|This seems like a limited case of pattern matching. Swarnim, any way we can support generic regex matching instead?||Mark Grover||Feb. 5, 2013, 3:43 a.m.||Open|