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 2F28218A60 for ; Tue, 7 Jul 2015 12:55:05 +0000 (UTC) Received: (qmail 97929 invoked by uid 500); 7 Jul 2015 12:55:05 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 97862 invoked by uid 500); 7 Jul 2015 12:55:05 -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 97710 invoked by uid 99); 7 Jul 2015 12:55:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 12:55:05 +0000 Date: Tue, 7 Jul 2015 12:55:05 +0000 (UTC) From: "Aman Sinha (JIRA)" To: issues@drill.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 [ https://issues.apache.org/jira/browse/DRILL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aman Sinha updated DRILL-636: ----------------------------- Fix Version/s: (was: 1.2.0) 1.3.0 > 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 > Fix For: 1.3.0 > > > 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.3.4#6332)