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 242ADEFEE for ; Sat, 2 Mar 2013 02:27:14 +0000 (UTC) Received: (qmail 29838 invoked by uid 500); 2 Mar 2013 02:27:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 29785 invoked by uid 500); 2 Mar 2013 02:27:13 -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 29777 invoked by uid 500); 2 Mar 2013 02:27:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 29774 invoked by uid 99); 2 Mar 2013 02:27:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Mar 2013 02:27:13 +0000 Date: Sat, 2 Mar 2013 02:27:13 +0000 (UTC) From: "Vinod Kumar Vavilapalli (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-3952) merge map-job followed by map-reduce job 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-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Kumar Vavilapalli updated HIVE-3952: ------------------------------------------ Attachment: HIVE-3952-20130301.txt Ran my new test again, passes. This patch can be applied on top of HIVE-4106. > merge map-job followed by map-reduce job > ---------------------------------------- > > Key: HIVE-3952 > URL: https://issues.apache.org/jira/browse/HIVE-3952 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Namit Jain > Assignee: Vinod Kumar Vavilapalli > Attachments: HIVE-3952-20130226.txt, HIVE-3952-20130227.1.txt, HIVE-3952-20130301.txt > > > Consider the query like: > select count(*) FROM > ( select idOne, idTwo, value FROM > bigTable > JOIN > smallTableOne on (bigTable.idOne = smallTableOne.idOne) > ) firstjoin > JOIN > smallTableTwo on (firstjoin.idTwo = smallTableTwo.idTwo); > where smallTableOne and smallTableTwo are smaller than hive.auto.convert.join.noconditionaltask.size and > hive.auto.convert.join.noconditionaltask is set to true. > The joins are collapsed into mapjoins, and it leads to a map-only job > (for the map-joins) followed by a map-reduce job (for the group by). > Ideally, the map-only job should be merged with the following map-reduce job. -- 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