Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39DCD11D1B for ; Mon, 8 Sep 2014 16:08:29 +0000 (UTC) Received: (qmail 79870 invoked by uid 500); 8 Sep 2014 16:08:28 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 79778 invoked by uid 500); 8 Sep 2014 16:08:28 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 79764 invoked by uid 500); 8 Sep 2014 16:08:28 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 79761 invoked by uid 99); 8 Sep 2014 16:08:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2014 16:08:28 +0000 Date: Mon, 8 Sep 2014 16:08:28 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-8017) Use HiveKey instead of BytesWritable as key type of the pair RDD [Spark Branch] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-8017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14125702#comment-14125702 ] Xuefu Zhang commented on HIVE-8017: ----------------------------------- Thanks, [~lirui]. Patch looks good to me. Could take a look at the above test failures? Thanks. > 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 > > > 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)