hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-8560) SerDes that do not inherit AbstractSerDe do not get table properties during initialize()
Date Wed, 22 Oct 2014 17:11:34 GMT

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

Jason Dere commented on HIVE-8560:
----------------------------------

Agreed that the serde probably should have used stringPropertyNames(). But it wouldn't hurt
here if the table properties were set directly in the Properties (as opposed to being set
in the defaults), and then overlayed by the partition properties (if any), right?

> SerDes that do not inherit AbstractSerDe do not get table properties during initialize()
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-8560
>                 URL: https://issues.apache.org/jira/browse/HIVE-8560
>             Project: Hive
>          Issue Type: Bug
>          Components: Serializers/Deserializers
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-8560.1.patch
>
>
> Looks like this may have been introduced during HIVE-6835.  During initialize(), 3rd
party SerDes which do not inherit AbstractSerDe end up getting a Properties object created
by SerDeUtils.createOverlayedProperties().  This properties object receives the table properties
as defaults.  So looking up a key by name will yield the default value, but a call like getKeys()
will not show any of the table properties.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message