You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2015/11/10 01:53:10 UTC

[jira] [Updated] (HIVE-12373) Interner should return identical map or list

     [ https://issues.apache.org/jira/browse/HIVE-12373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-12373:
-------------------------
    Attachment: HIVE-12373.1.patch.txt

> Interner should return identical map or list
> --------------------------------------------
>
>                 Key: HIVE-12373
>                 URL: https://issues.apache.org/jira/browse/HIVE-12373
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-12373.1.patch.txt
>
>
> Currently, HiveStringUtils.intern(map/list) returns new instance of map or list. But it would break some usage style of code something like below (it's spark code in HiveMetastoreCatalog)
> {code}
> val serdeParameters = new java.util.HashMap[String, String]()
> serdeInfo.setParameters(serdeParameters)
> // these properties will be gone
> table.serdeProperties.foreach { case (k, v) => serdeParameters.put(k, v) }
> p.storage.serdeProperties.foreach { case (k, v) => serdeParameters.put(k, v) }
> {code}
> Luckily for spark, interner was not applied to released version of hive (1.2.0, 1.2.1) by mistake. But it would make problem in someday.



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