Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-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 6497B171EA for ; Mon, 1 Jun 2015 18:45:21 +0000 (UTC) Received: (qmail 2567 invoked by uid 500); 1 Jun 2015 18:45:21 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 2516 invoked by uid 500); 1 Jun 2015 18:45:21 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 2504 invoked by uid 99); 1 Jun 2015 18:45:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jun 2015 18:45:21 +0000 Date: Mon, 1 Jun 2015 18:45:21 +0000 (UTC) From: "Sean Hsuan-Yi Chu (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DRILL-3130) Project can be pushed below union all / union to improve performance 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/DRILL-3130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Hsuan-Yi Chu resolved DRILL-3130. -------------------------------------- Resolution: Fixed Fix Version/s: 1.1.0 Target Version/s: (was: Future) > Project can be pushed below union all / union to improve performance > -------------------------------------------------------------------- > > Key: DRILL-3130 > URL: https://issues.apache.org/jira/browse/DRILL-3130 > Project: Apache Drill > Issue Type: Improvement > Components: Query Planning & Optimization > Reporter: Sean Hsuan-Yi Chu > Assignee: Sean Hsuan-Yi Chu > Fix For: 1.1.0 > > > A query such as > {code} > Select a from > (select a, b, c, ..., union all select a, b, c, ...) > {code} > will perform Union-All over all the specified columns on the two sides, despite the fact that only one column is asked for at the end. Ideally, we should perform ProjectPushDown rule for Union & Union-All to avoid them to generate results which will be discarded at the end. -- This message was sent by Atlassian JIRA (v6.3.4#6332)