You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (JIRA)" <ji...@apache.org> on 2016/07/22 14:18:20 UTC

[jira] [Commented] (HIVE-14287) Explain output: printed nested mapvalues are dependent on map entry iteration order

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

Zoltan Haindrich commented on HIVE-14287:
-----------------------------------------

this should follow HIVE-14285.
after this i hope the qtest became stable under different jdk-s

> 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
>
> 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)