Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3312

Improve Hive Map to HBase column family

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.0
    • None
    • HBase Handler
    • None

    Description

      The documentation states the following way to use a map to access a whole column family:

      CREATE TABLE hbase_table_1(value map<string,int>, row_key int)
      STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
      WITH SERDEPROPERTIES (
      "hbase.columns.mapping" = "cf:,:key"
      );
      

      Now since we are mapping map<string,int> to the hbase column family cf, it makes a very crude assumption that all columns in the column family cf are expected to hold a int value which may not be the case always. This strategy should probably be improved to support different types of values stored in columns under the same column family.

      Attachments

        Activity

          People

            Unassigned Unassigned
            swarnim Swarnim Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: