You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Jagrut Sharma <ja...@gmail.com> on 2017/08/15 19:44:03 UTC

JSON SerDe column name mapping

For org.apache.hive.hcatalog.data.JsonSerDe, is there a way to provide
column name mapping via serdeproperties? Trying to handle keys with dots in
them by renaming to underscores.

For a JSON key like key.name.dev, the Hive table will have column
key_name_dev. The mapping should be specified via the serde config when
creating the table.

This functionality is provided by this SerDe (https://github.com/rcongiu/
Hive-JSON-Serde), and trying to get something similar.

Thanks.

-- 
Jagrut