Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 25743 invoked from network); 26 Mar 2009 01:29:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 01:29:29 -0000 Received: (qmail 17947 invoked by uid 500); 26 Mar 2009 00:31:13 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 17936 invoked by uid 500); 26 Mar 2009 00:31:13 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 17926 invoked by uid 99); 26 Mar 2009 00:31:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 00:31:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 00:31:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 79AE7234C003 for ; Wed, 25 Mar 2009 17:30:50 -0700 (PDT) Message-ID: <1183734359.1238027450484.JavaMail.jira@brutus> Date: Wed, 25 Mar 2009 17:30:50 -0700 (PDT) From: "Zheng Shao (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-318) [Hive] union all queries broken - all kinds of problems In-Reply-To: <2002068662.1236105896231.JavaMail.jira@brutus> 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-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689301#action_12689301 ] Zheng Shao commented on HIVE-318: --------------------------------- +1. Testing now. > [Hive] union all queries broken - all kinds of problems > ------------------------------------------------------- > > Key: HIVE-318 > URL: https://issues.apache.org/jira/browse/HIVE-318 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > Assignee: Namit Jain > Priority: Blocker > Attachments: hive.318.2.patch, hive.318.3.patch, hive.318.4.patch, hive.318.5.patch, hive.318.6.patch, hive.318.7.patch, hive.318.patch > > > 1. Map-only job : same input > Hangs because mapper tries to same open twice, and hadoop filesystem complains. > Fix: Only initialize once - keep state at the Operator level for the same. Should do same for Close. > 2. Map-only job : different inputs > Loss of data due to rename. > Fix: change rename to move files to the directory. > 3. Map-only job in subquery + RedSink: works currently > 4. 2 variables: so 4 sub-cases > Number of sub-queries having map-reduce jobs. (1/2) > Operator after Union (RS/FS) > > a. Number of sub-queries having map-reduce jobs. 1 > Operator after Union: RS > Can be done in 2MR - really difficult with current infrastructure. > Should do with 3 MR jobs now - break on top of UNION. > Future optimization: move operators between Union and RS before Union. > b. Number of sub-queries having map-reduce jobs. 2 > Operator after Union: RS > Needs 3MR - Should do with 3 MR jobs - break on top of UNION. > Future optimization: move operators between Union and RS before Union. > c. Number of sub-queries having map-reduce jobs. 1 > Operator after Union: FS > Can be done in 1MR - really difficult with current infrastructure. > Can be easily done with 2 MR by removing UNION and cloning operators between Union and FS. > Should do with 3 MR jobs now - break on top of UNION. > Followup optimization: 2MR should be able to handle > d. Number of sub-queries having map-reduce jobs. 2 > Operator after Union: FS > Can be easily done with 2 MR by removing UNION and cloning operators between Union and FS. > Should do with 3 MR jobs now - break on top of UNION. > Followup optimization: 2MR should be able to handle -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.