Return-Path: X-Original-To: apmail-tajo-issues-archive@minotaur.apache.org Delivered-To: apmail-tajo-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DEB71160D for ; Thu, 3 Jul 2014 13:54:49 +0000 (UTC) Received: (qmail 37619 invoked by uid 500); 3 Jul 2014 13:54:49 -0000 Delivered-To: apmail-tajo-issues-archive@tajo.apache.org Received: (qmail 37583 invoked by uid 500); 3 Jul 2014 13:54:49 -0000 Mailing-List: contact issues-help@tajo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.apache.org Delivered-To: mailing list issues@tajo.apache.org Received: (qmail 37574 invoked by uid 99); 3 Jul 2014 13:54:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 13:54:49 +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.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Jul 2014 13:54:50 +0000 Received: (qmail 35141 invoked by uid 99); 3 Jul 2014 13:54:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 13:54:25 +0000 Date: Thu, 3 Jul 2014 13:54:25 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TAJO-891) Complex join conditions with UNION or inline should be supported 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/TAJO-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14051452#comment-14051452 ] ASF GitHub Bot commented on TAJO-891: ------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/tajo/pull/49 > Complex join conditions with UNION or inline should be supported > ---------------------------------------------------------------- > > Key: TAJO-891 > URL: https://issues.apache.org/jira/browse/TAJO-891 > Project: Tajo > Issue Type: Bug > Components: distributed query plan, planner/optimizer > Reporter: Hyunsik Choi > Assignee: Hyunsik Choi > Fix For: 0.9.0 > > > Please see the following two example queries. Currently, they will cause planning exception. This patch fixes the bugs. > {code} > select > n1.n_nationkey, > substr(n1.n_name, 1, 4) name1, > substr(n2.n_name, 1, 4) name2 > from nation n1 join (select * from nation) n2 on substr(n1.n_name, 1, 4) = substr(n2.n_name, 1, 4) > order by n1.n_nationkey; > {code} > {code} > select > n1.n_nationkey, > substr(n1.n_name, 1, 4) name1, > substr(n2.n_name, 1, 4) name2 > from nation n1 join (select * from nation union select * from nation) n2 on substr(n1.n_name, 1, 4) = substr(n2.n_name, 1, 4) > order by n1.n_nationkey; > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)