hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy V. Ryaboy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-3323) ThriftSerde: Enable enum to string conversions
Date Thu, 23 Aug 2012 22:25:42 GMT

    [ https://issues.apache.org/jira/browse/HIVE-3323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440722#comment-13440722
] 

Dmitriy V. Ryaboy commented on HIVE-3323:
-----------------------------------------

Sorry, let me try a less snide reply :)
It doesn't make sense to me to have a situation where you are working with Thrift and Avro,
and you want to not convert from Thrift but you do want to convert from Avro. What you really
want is establish how Hive does serde type conversions, not how it does them for individual
encodings of data.
                
> ThriftSerde: Enable enum to string conversions
> ----------------------------------------------
>
>                 Key: HIVE-3323
>                 URL: https://issues.apache.org/jira/browse/HIVE-3323
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 0.10.0
>            Reporter: Travis Crawford
>            Assignee: Travis Crawford
>         Attachments: HIVE-3323_enum_to_string.1.patch, HIVE-3323_enum_to_string.2.patch,
HIVE-3323_enum_to_string.3.patch, HIVE-3323_enum_to_string.4.patch, HIVE-3323_enum_to_string.5.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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message