Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: trivial edits of Hiding Column Prefixes (HIVE-11329)

...

The same restrictions apply though. That is, the key of the map should be a string as it maps to the HBase column name and the value can be the type of value that you are retrieving. One other restriction is that all the values under the given prefix should be of the same type. That is, all of them should be of type "int" or type "string" and so on.

Hiding

...

Column Prefixes

Starting with Hive 1.3.0, it is possible to hide column prefixes in select query results.  There is the SerDe boolean property hbase.columns.mapping.prefix.hide (false by default is false), which defines if the prefix should be hidden in keys of Hive map:

...

Then a value of the column "tags" (select tags from hbase_table_1) will be:

"x" : 1

instead of:

...