Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # dev >> Review Request: Add support for pulling HBase columns with prefixes

Swarnim Kulkarni 2013-02-03, 01:02
Copy link to this message
Re: Review Request: Add support for pulling HBase columns with prefixes

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 3, 2013, 1:04 a.m.)
Review request for hive.

Updated description.
Description (updated)

Added support for pulling hbase columns just by providing prefixes and a wildcard. So a query now could look something like this:

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.
This addresses bug HIVE-3725.

  hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSerDe.java 7f37ba5
  hbase-handler/src/java/org/apache/hadoop/hive/hbase/LazyHBaseCellMap.java a8ba9d9
  hbase-handler/src/java/org/apache/hadoop/hive/hbase/LazyHBaseRow.java d35bb52
  hbase-handler/src/test/org/apache/hadoop/hive/hbase/TestHBaseSerDe.java e821282

Diff: https://reviews.apache.org/r/9276/diff/

Added unit tests to demonstrate the new functionality. Also made sure that all existing unit tests passed.

Swarnim Kulkarni

Mark Grover 2013-02-05, 03:43
Swarnim Kulkarni 2013-02-09, 15:21
Swarnim Kulkarni 2013-02-10, 00:44
Brock Noland 2013-02-09, 16:05
Swarnim Kulkarni 2013-02-09, 16:29
Mark Grover 2013-02-09, 16:38
Swarnim Kulkarni 2013-02-09, 21:56
Eric Hanson 2013-04-30, 21:35