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 63B4FE53B for ; Mon, 3 Dec 2012 05:40:05 +0000 (UTC) Received: (qmail 11310 invoked by uid 500); 3 Dec 2012 05:40:04 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 10851 invoked by uid 500); 3 Dec 2012 05:40:02 -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 10780 invoked by uid 500); 3 Dec 2012 05:40:00 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 10735 invoked by uid 99); 3 Dec 2012 05:39:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 05:39:58 +0000 Date: Mon, 3 Dec 2012 05:39:58 +0000 (UTC) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <498558479.52023.1354513198517.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (HIVE-3763) Aggregation followed by a sort-merge join requires a new MR job MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Namit Jain created HIVE-3763: -------------------------------- Summary: Aggregation followed by a sort-merge join requires a new MR job Key: HIVE-3763 URL: https://issues.apache.org/jira/browse/HIVE-3763 Project: Hive Issue Type: Bug Reporter: Namit Jain After Hive-3633, if tbl1 and tbl2 are tables bucketiezed and sorted by key into 2 buckets, the following query: select count(*) from ( select /*+mapjoin(a)*/ a.key as key, a.value as val1, b.value as val2 from tbl1 a join tbl2 b on a.key = b.key ) subq1; requires 2 MR job - the first one is a sort-merge join, and the second MR job performs the count(*) on the output of the sort-merge join. Ideally, this should be performed in a single MR 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