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 70DD210F72 for ; Fri, 26 Jul 2013 00:51:49 +0000 (UTC) Received: (qmail 34316 invoked by uid 500); 26 Jul 2013 00:51:48 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 34272 invoked by uid 500); 26 Jul 2013 00:51:48 -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 34263 invoked by uid 500); 26 Jul 2013 00:51:48 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 34260 invoked by uid 99); 26 Jul 2013 00:51:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jul 2013 00:51:48 +0000 Date: Fri, 26 Jul 2013 00:51:48 +0000 (UTC) From: "Yin Huai (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4927) When we merge two MapJoin MapRedTasks, the TableScanOperator of the second one should be removed 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-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yin Huai updated HIVE-4927: --------------------------- Status: Open (was: Patch Available) > When we merge two MapJoin MapRedTasks, the TableScanOperator of the second one should be removed > ------------------------------------------------------------------------------------------------ > > Key: HIVE-4927 > URL: https://issues.apache.org/jira/browse/HIVE-4927 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.12.0 > Reporter: Yin Huai > Assignee: Yin Huai > Attachments: HIVE-4927.D11811.1.patch, HIVE-4927.D11811.2.patch, HIVE-4927.D11811.3.patch > > > {code} > set hive.auto.convert.join=true; > set hive.auto.convert.join.noconditionaltask=true; > EXPLAIN > SELECT x1.key AS key FROM src x1 JOIN src1 y1 ON (x1.key = y1.key) JOIN src1 y2 ON (x1.value = y2.value) GROUP BY x1.key; > {\code} > We will get a NPE from MetadataOnlyOptimizer. The reason is that the operator tree of the MapRedTask evaluating two MapJoins is > {code} > TS1->MapJoin1->TS2->MapJoin2->... > {\code} > We should remove the TS2... -- 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