Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1CEB10225 for ; Mon, 16 Dec 2013 17:49:31 +0000 (UTC) Received: (qmail 46192 invoked by uid 500); 16 Dec 2013 17:49:31 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 46120 invoked by uid 500); 16 Dec 2013 17:49:31 -0000 Mailing-List: contact dev-help@tajo.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.incubator.apache.org Delivered-To: mailing list dev@tajo.incubator.apache.org Received: (qmail 46111 invoked by uid 99); 16 Dec 2013 17:49:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 17:49:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Mon, 16 Dec 2013 17:49:29 +0000 Received: (qmail 45362 invoked by uid 99); 16 Dec 2013 17:49:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Dec 2013 17:49:07 +0000 Date: Mon, 16 Dec 2013 17:49:07 +0000 (UTC) From: "Hyunsik Choi (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TAJO-418) sort operator after Inline views consisting of unions can cause an incorrect distributed plan 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-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hyunsik Choi updated TAJO-418: ------------------------------ Resolution: Fixed Status: Resolved (was: Patch Available) committed it to master. Thanks for the review. > sort operator after Inline views consisting of unions can cause an incorrect distributed plan > --------------------------------------------------------------------------------------------- > > Key: TAJO-418 > URL: https://issues.apache.org/jira/browse/TAJO-418 > Project: Tajo > Issue Type: Bug > Components: distributed query plan > Reporter: Hyunsik Choi > Assignee: Hyunsik Choi > Fix For: 0.8-incubating > > Attachments: TAJO-418.patch > > > See the title. The following query is an example of this bug. > {code} > SELECT > l_returnflag, > l_linestatus > FROM ( > SELECT > * > FROM > lineitem > WHERE > l_returnflag = 'O' > UNION ALL > SELECT > * > FROM > lineitem > WHERE > l_returnflag = 'R' > ) T > GROUP BY > l_returnflag, > l_linestatus > ORDER BY > l_returnflag, > l_linestatus > {code} > This patch adds an unit test to reproduce this case and includes the bug fix. -- This message was sent by Atlassian JIRA (v6.1.4#6159)