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 3C33B10335 for ; Fri, 12 Apr 2013 05:29:18 +0000 (UTC) Received: (qmail 76491 invoked by uid 500); 12 Apr 2013 05:29:16 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 76335 invoked by uid 500); 12 Apr 2013 05:29:16 -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 75801 invoked by uid 500); 12 Apr 2013 05:29:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 75788 invoked by uid 99); 12 Apr 2013 05:29:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Apr 2013 05:29:15 +0000 Date: Fri, 12 Apr 2013 05:29:15 +0000 (UTC) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4241) optimize hive.enforce.sorting and hive.enforce bucketing join 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-4241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Namit Jain updated HIVE-4241: ----------------------------- Attachment: hive.4241.4.patch > optimize hive.enforce.sorting and hive.enforce bucketing join > ------------------------------------------------------------- > > Key: HIVE-4241 > URL: https://issues.apache.org/jira/browse/HIVE-4241 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Namit Jain > Assignee: Namit Jain > Attachments: hive.4241.1.patch, hive.4241.1.patch-nohcat, hive.4241.2.patch-nohcat, hive.4241.3.patch, hive.4241.4.patch > > > Consider the following scenario: > T1: sorted and bucketed by key into 2 buckets > T2: sorted and bucketed by key into 2 buckets > T3: sorted and bucketed by key into 2 buckets > set hive.enforce.sorting=true; > set hive.enforce.bucketing=true; > insert overwrite table T3 > select .. from T1 join T2 on T1.key = T2.key; > Since T1, T2 and T3 are sorted/bucketed by the join, and the above join is > being performed as a sort-merge join, T3 should be bucketed/sorted without > the need for an extra reducer. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira