From issues-return-51574-archive-asf-public=cust-asf.ponee.io@drill.apache.org Tue Apr 3 11:05:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 99811180675 for ; Tue, 3 Apr 2018 11:05:04 +0200 (CEST) Received: (qmail 58219 invoked by uid 500); 3 Apr 2018 09:05:03 -0000 Mailing-List: contact issues-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 issues@drill.apache.org Received: (qmail 58127 invoked by uid 99); 3 Apr 2018 09:05:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2018 09:05:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CA1EB1804E6 for ; Tue, 3 Apr 2018 09:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id T1EJvfnyf8Gr for ; Tue, 3 Apr 2018 09:05:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D5D585FD38 for ; Tue, 3 Apr 2018 09:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 185E2E0D8C for ; Tue, 3 Apr 2018 09:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 762582561E for ; Tue, 3 Apr 2018 09:05:00 +0000 (UTC) Date: Tue, 3 Apr 2018 09:05:00 +0000 (UTC) From: "Vitalii Diravka (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (DRILL-2746) Filter is not pushed into subquery past UNION ALL 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-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitalii Diravka reassigned DRILL-2746: -------------------------------------- Assignee: Vitalii Diravka (was: Sean Hsuan-Yi Chu) > Filter is not pushed into subquery past UNION ALL > ------------------------------------------------- > > Key: DRILL-2746 > URL: https://issues.apache.org/jira/browse/DRILL-2746 > Project: Apache Drill > Issue Type: Improvement > Components: Query Planning & Optimization > Affects Versions: 0.9.0 > Reporter: Victoria Markman > Assignee: Vitalii Diravka > Priority: Major > Fix For: 1.1.0 > > > I expected to see filter pushed to at least left side of UNION ALL, instead it is applied after UNION ALL > {code} > 0: jdbc:drill:schema=dfs> explain plan for select * from (select a1, b1, c1 from t1 union all select a2, b2, c2 from t2 ) where a1 = 10; > +------------+------------+ > | text | json | > +------------+------------+ > | 00-00 Screen > 00-01 Project(a1=[$0], b1=[$1], c1=[$2]) > 00-02 SelectionVectorRemover > 00-03 Filter(condition=[=($0, 10)]) > 00-04 UnionAll(all=[true]) > 00-06 Project(a1=[$2], b1=[$1], c1=[$0]) > 00-08 Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath [path=maprfs:/drill/testdata/predicates/t1]], selectionRoot=/drill/testdata/predicates/t1, numFiles=1, columns=[`a1`, `b1`, `c1`]]]) > 00-05 Project(a2=[$1], b2=[$0], c2=[$2]) > 00-07 Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath [path=maprfs:/drill/testdata/predicates/t2]], selectionRoot=/drill/testdata/predicates/t2, numFiles=1, columns=[`a2`, `b2`, `c2`]]]) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)