Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-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 AE3EE11DC3 for ; Mon, 9 Jun 2014 06:49:56 +0000 (UTC) Received: (qmail 79246 invoked by uid 500); 9 Jun 2014 06:49:56 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 79214 invoked by uid 500); 9 Jun 2014 06:49:56 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 79200 invoked by uid 99); 9 Jun 2014 06:49:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 06:49:56 +0000 X-ASF-Spam-Status: No, hits=-2000.7 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, 09 Jun 2014 06:49:57 +0000 Received: (qmail 74383 invoked by uid 99); 9 Jun 2014 06:49:32 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 06:49:32 +0000 Date: Mon, 9 Jun 2014 06:49:32 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-636) Push Limit operator past project, left outer join, union all operator and down into scan operator 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/DRILL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-636: --------------------------------- Component/s: Query Planning & Optimization Assignee: Aman Sinha > Push Limit operator past project, left outer join, union all operator and down into scan operator > -------------------------------------------------------------------------------------------------- > > Key: DRILL-636 > URL: https://issues.apache.org/jira/browse/DRILL-636 > Project: Apache Drill > Issue Type: Improvement > Components: Query Planning & Optimization > Reporter: Jinfeng Ni > Assignee: Aman Sinha > > When we have a limit operator on top of project, left outer join, union all operator, we should push the limit operator, until the limit is put into scan operator. Doing so, it will reduce the amount of data scanned by the scan operator. > For instance, > Select COL1, COL2 FROM T1 LIMIT 5; > LIMIT (5) > \ > PROJECT (COL1, COL2) > \ > SCAN (T1). > We need push limit past project, down into scan. > Similar applies to left outer join, or union all. -- This message was sent by Atlassian JIRA (v6.2#6252)