hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (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 14:24:34 GMT

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

Xuefu Zhang commented on HIVE-8560:
-----------------------------------

Change looks fine to me. However, I'm a little surprised by the subtle difference between
the two ways. Is it documented in Properties class?

> 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