hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <>
Subject [jira] [Commented] (HIVE-8707) Fix ordering differences due to Java 8 HashMap function
Date Sun, 16 Nov 2014 01:38:34 GMT


Brock Noland commented on HIVE-8707:

Thank you Mohit! The change looks great. I am wondering should we do something to document
that these maps should be a deterministic ordered map? For example we could add a javadoc
to their declaration, create a tiny wrapper {{LinkedHashMap}} say called {{DeterminsiticOrderedMap}}
or just put a comment where we create the Map saying must be deterministic referencing this

> Fix ordering differences due to Java 8 HashMap function
> -------------------------------------------------------
>                 Key: HIVE-8707
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Mohit Sabharwal
>            Assignee: Mohit Sabharwal
>         Attachments: HIVE-8707.1.patch, HIVE-8707.patch
> Java 8 uses a different hash function for HashMap, which is leading to iteration order
differences in several cases. (See [Java8|]
vs [Java7|])
> For example:
>   - In Explain output: Stages are numbered differently  
>   - In PostExecutePrinter hook, table order is different in lineage.

This message was sent by Atlassian JIRA

View raw message