Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 88742 invoked from network); 11 Mar 2009 17:51:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 17:51:12 -0000 Received: (qmail 63905 invoked by uid 500); 11 Mar 2009 17:51:12 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 63883 invoked by uid 500); 11 Mar 2009 17:51:12 -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 63863 invoked by uid 99); 11 Mar 2009 17:51:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 10:51:11 -0700 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; Wed, 11 Mar 2009 17:51:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B6282234C003 for ; Wed, 11 Mar 2009 10:50:50 -0700 (PDT) Message-ID: <949720909.1236793850729.JavaMail.jira@brutus> Date: Wed, 11 Mar 2009 10:50:50 -0700 (PDT) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (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:all-tabpanel ] Namit Jain updated HIVE-318: ---------------------------- Status: Open (was: Patch Available) > [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 > Attachments: hive.318.2.patch, hive.318.3.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.