hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Crawford (JIRA)" <>
Subject [jira] [Updated] (HIVE-3323) Enable enum to string conversions
Date Tue, 31 Jul 2012 02:35:35 GMT


Travis Crawford updated HIVE-3323:

    Attachment: HIVE-3323_enum_to_string.1.patch

Attached is a work-in-progress patch that converts enums to strings. This implementation adds
the conversion logic inside JavaStringObjectInspector because this allows us to totally behave
as Strings everywhere.

Something I'm not clear on is how to make this conversion optional. On the MR cluster, is
there a static method for getting a hive conf stored in the job conf? That would be much preferable
to passing the conf through from all places where ObjectInspectorFactory is called.

Thoughts on this patch, or suggestions on a better way to add this conversion?
> Enable enum to string conversions
> ---------------------------------
>                 Key: HIVE-3323
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>         Attachments: HIVE-3323_enum_to_string.1.patch
> When using serde-reported schemas with the ThriftDeserializer, Enum fields are presented
as {{struct<value:int>}}
> Many users expect to work with the string values, which is both easier and more meaningful
as the string value communicates what is represented.
> Hive should provide a mechanism to optionally convert enum values to strings.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message