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 DECF447AD for ; Tue, 5 Jul 2011 17:37:41 +0000 (UTC) Received: (qmail 5052 invoked by uid 500); 5 Jul 2011 17:37:41 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 4959 invoked by uid 500); 5 Jul 2011 17:37:40 -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 4951 invoked by uid 500); 5 Jul 2011 17:37:40 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 4946 invoked by uid 99); 5 Jul 2011 17:37:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 17:37:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 05 Jul 2011 17:37:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 928B244896 for ; Tue, 5 Jul 2011 17:37:16 +0000 (UTC) Date: Tue, 5 Jul 2011 17:37:16 +0000 (UTC) From: "John Sichi (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1972645834.1249.1309887436596.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1378124444.1466.1309765521875.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2253) Merge failing of join tree in exceptional case 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-2253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060030#comment-13060030 ] John Sichi commented on HIVE-2253: ---------------------------------- We'll need a small unit test with EXPLAIN for this case. > Merge failing of join tree in exceptional case > ---------------------------------------------- > > Key: HIVE-2253 > URL: https://issues.apache.org/jira/browse/HIVE-2253 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.7.0 > Environment: hadoop 0.20.2, hive 0.7.0 > Reporter: Navis > Priority: Minor > Attachments: HIVE-2253.patch > > > In some very exceptional cases, SemanticAnayzer fails to merge join tree. Example is below. > create table a (val1 int, val2 int) > create table b (val1 int, val2 int) > create table c (val1 int, val2 int) > create table d (val1 int, val2 int) > create table e (val1 int, val2 int) > 1. all same(single) join key --> one MR, good > select * from a join b on a.val1=b.val1 join c on a.val1=c.val1 join d on a.val1=d.val1 join e on a.val1=e.val1 > 2. two join keys --> expected to have two MR, but resulted to three MR > select * from a join b on a.val1=b.val1 join c on a.val1=c.val1 join d on a.val1=d.val1 join e on a.val2=e.val2 > 3. by changing the join order, we could attain two MR as first-expectation. > select * from a join e on a.val2=e.val2 join c on a.val1=c.val1 join d on a.val1=d.val1 join b on a.val1=b.val1 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira