You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mohit Sabharwal (JIRA)" <ji...@apache.org> on 2014/12/20 03:18:13 UTC

[jira] [Updated] (HIVE-9181) Fix SkewJoinOptimizer related Java 8 ordering differences

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

Mohit Sabharwal updated HIVE-9181:
----------------------------------
    Attachment: HIVE-9181.patch

> Fix SkewJoinOptimizer related Java 8 ordering differences
> ---------------------------------------------------------
>
>                 Key: HIVE-9181
>                 URL: https://issues.apache.org/jira/browse/HIVE-9181
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Tests
>            Reporter: Mohit Sabharwal
>            Assignee: Mohit Sabharwal
>         Attachments: HIVE-9181.patch
>
>
> (1) {{SkewJoinOptimizer}} adds items to {{ParseContext.topOps}} is different order in Java 8 vs Java 7. This leads to differences in EXPLAIN output related to {{MapWork}}.
> (2) Dbproperties order for a "desc database" query is non-deterministic at the HiveMetastore end between Java 8 and Java 7 (because Thrift maps are un-ordered). 
> {code}
> create database test_db with dbproperties ('key1' = 'value1', 'key2' = 'value2');
> desc database extended test_db;
> {code}
> At client side, we serialize the dbproperties map returned from HMS as string and write it to a temp file. The {{FetchTask}} then reads the temp file and returns the string back to the user. In test environment, for consistent ordering, we should sort the map before it is serialized to the temp file.  
>  



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