hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Haindrich (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-14287) Explain output: printed nested mapvalues are dependent on map entry iteration order
Date Sun, 24 Jul 2016 19:37:20 GMT

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

Zoltan Haindrich updated HIVE-14287:
------------------------------------
    Attachment: HIVE-14287.1.patch

> Explain output: printed nested mapvalues are dependent on map entry iteration order
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-14287
>                 URL: https://issues.apache.org/jira/browse/HIVE-14287
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>         Attachments: HIVE-14287.1.patch
>
>
> Order of map keys are handled by a {{TreeSet}} in {{ExplainTask#outputMap}}, but for
Map values, there is only a {{toString()}}  which implicitly iterates over the map and prints
them - in case of a {{HashMap}} this iteration order may vary between jdk versions - and may
cause false positive testfailures
> https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java#L472



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

Mime
View raw message