[ https://issues.apache.org/jira/browse/HIVE-8017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14127087#comment-14127087 ]
Brock Noland commented on HIVE-8017: ------------------------------------ bq. do you have any comments as how to use the {{-- SORT_BEFORE_DIFF}} label? I am surprised the query failed if that was before the the set commands? I think the big item is to ensure that the comment flag {{--}} is before the text {{SORT_BEFORE_DIFF}}. The code which implements this is here: https://github.com/apache/hive/blob/trunk/itests/util/src/main/java/org/apache/hadoop/hive/ql/QTestUtil.java#L416 > 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)