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

Rui Li commented on HIVE-8017:
------------------------------

Hi [~xuefuz] I quickly checked the latest failures and I think they are caused 
by the {{-- SORT_BEFORE_DIFF}} label. The diff is mainly something like:
{noformat}
> POSTHOOK: query: CREATE TABLE dest_g1(key INT, value DOUBLE) STORED AS 
> TEXTFILE
366d362
< POSTHOOK: query: -- SORT_BEFORE_DIFF
375a372
> PREHOOK: query: CREATE TABLE dest_g1(key INT, value DOUBLE) STORED AS TEXTFILE
379d375
< PREHOOK: query: -- SORT_BEFORE_DIFF
{noformat}

There's no diff in the results.

> Use HiveKey instead of BytesWritable as key type of the pair RDD [Spark 
> Branch]
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-8017
>                 URL: https://issues.apache.org/jira/browse/HIVE-8017
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Spark
>            Reporter: Rui Li
>            Assignee: Rui Li
>         Attachments: HIVE-8017-spark.patch, HIVE-8017.2-spark.patch
>
>
> HiveKey should be used as the key type because it holds the hash code for 
> partitioning. While BytesWritable serves partitioning well for simple cases, 
> we have to use {{HiveKey.hashCode}} for more complicated ones, e.g. join, 
> bucketed table, etc.



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

Reply via email to