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 51D3891DA for ; Mon, 14 Nov 2011 07:19:58 +0000 (UTC) Received: (qmail 57483 invoked by uid 500); 14 Nov 2011 07:19:54 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 57289 invoked by uid 500); 14 Nov 2011 07:19:21 -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 57281 invoked by uid 500); 14 Nov 2011 07:19:17 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 57272 invoked by uid 99); 14 Nov 2011 07:19:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 07:19:16 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 07:19:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BE6A959A9E for ; Mon, 14 Nov 2011 07:18:52 +0000 (UTC) Date: Mon, 14 Nov 2011 07:18:52 +0000 (UTC) From: "Phabricator (Updated) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1474546199.26063.1321255132781.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1365888343.15030.1320862671527.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2566) reduce the number map-reduce jobs for union all MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phabricator updated HIVE-2566: ------------------------------ Attachment: HIVE-2566.D405.2.patch njain updated the revision "HIVE-2566 [jira] reduce the number map-reduce jobs for union all". Reviewers: JIRA HIVE-2566 patch available REVISION DETAIL https://reviews.facebook.net/D405 AFFECTED FILES ql/src/test/results/clientpositive/merge4.q.out ql/src/test/results/clientpositive/auto_join27.q.out ql/src/test/results/clientpositive/union19.q.out ql/src/test/results/clientpositive/union4.q.out ql/src/test/results/clientpositive/union14.q.out ql/src/test/results/clientpositive/create_view.q.out ql/src/test/results/clientpositive/union5.q.out ql/src/test/results/clientpositive/ql_rewrite_gbtoidx.q.out ql/src/test/results/clientpositive/load_dyn_part14.q.out ql/src/test/results/clientpositive/union15.q.out ql/src/test/results/clientpositive/union24.q.out ql/src/test/results/clientpositive/union10.q.out ql/src/test/results/clientpositive/input25.q.out ql/src/test/results/clientpositive/union6.q.out ql/src/test/results/clientpositive/lineage1.q.out ql/src/test/results/clientpositive/union11.q.out ql/src/test/results/clientpositive/join35.q.out ql/src/test/results/clientpositive/union20.q.out ql/src/test/results/clientpositive/input26.q.out ql/src/test/results/clientpositive/union7.q.out ql/src/test/results/clientpositive/union17.q.out ql/src/test/results/clientpositive/union12.q.out ql/src/test/results/clientpositive/stats1.q.out ql/src/test/results/clientpositive/union18.q.out ql/src/test/results/clientpositive/union3.q.out ql/src/test/results/clientpositive/ppd_union_view.q.out ql/src/test/queries/clientpositive/union24.q ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRProcContext.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMRUnion1.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java > reduce the number map-reduce jobs for union all > ----------------------------------------------- > > Key: HIVE-2566 > URL: https://issues.apache.org/jira/browse/HIVE-2566 > Project: Hive > Issue Type: Improvement > Reporter: Namit Jain > Assignee: Namit Jain > Attachments: HIVE-2566.D405.1.patch, HIVE-2566.D405.2.patch > > > A query like: > select s.key, s.value from ( > select key, value from src2 where key < 10 > union all > select key, value from src3 where key < 10 > union all > select key, value from src4 where key < 10 > union all > select key, count(1) as value from src5 group by key > )s; > should run the last sub-query > 'select key, count(1) as value from src5 group by key' > as a map-reduce job. > And then the union should be a map-only job reading from the first 3 map-only subqueries > and the output of the last map-reduce job. > The current plan is very inefficient. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira