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 AB21B119DD for ; Tue, 9 Sep 2014 16:09:29 +0000 (UTC) Received: (qmail 87053 invoked by uid 500); 9 Sep 2014 16:09:29 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 86768 invoked by uid 500); 9 Sep 2014 16:09:29 -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 86754 invoked by uid 500); 9 Sep 2014 16:09:29 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 86750 invoked by uid 99); 9 Sep 2014 16:09:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2014 16:09:29 +0000 Date: Tue, 9 Sep 2014 16:09: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: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-8017?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14127= 157#comment-14127157 ]=20 Xuefu Zhang commented on HIVE-8017: ----------------------------------- Hi Rui, {quote} Have you tried =E2=80=93 SORT_BEFORE_DIFF, which is to sort the query resul= t, which is different from SORT_BEFORE_DIFF. It's supposed to make query re= sult sorted w/o an order by. {quote} This comment indeeded made no sense. Sorry for the confusion, I meant "-- S= ORT_QUERY_RESULTS" for the first "-- SORT_BEFORE_DIFF". So my comment shoul= d really go like this: {bold} Have you tried =E2=80=93 SORT_QUERY_RESULTS, which is to sort the query res= ult, which is different from SORT_BEFORE_DIFF. It's supposed to make query = result sorted w/o an order by. {bold} SORT_BEFORE_DIFF sorts the output files before making diff. It's less reli= able, and sometimes the diff doesn't tell what's wrong. Thus, I think we sh= ould prefer SORT_QUERY_RESULTS when query output can diff in order.=20 Neither do I know why SORT_BEFORE_DIFF has to come after set commands in yo= ur case, but it seems the usage of it in the .q files is not consistent on = that front. > Use HiveKey instead of BytesWritable as key type of the pair RDD [Spark B= ranch] > -------------------------------------------------------------------------= ------ > > 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 case= s, 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)