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 77D9A18340 for ; Mon, 8 Jun 2015 18:27:01 +0000 (UTC) Received: (qmail 65123 invoked by uid 500); 8 Jun 2015 18:27:01 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 65094 invoked by uid 500); 8 Jun 2015 18:27:01 -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 65084 invoked by uid 99); 8 Jun 2015 18:27:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2015 18:27:01 +0000 Date: Mon, 8 Jun 2015 18:27:01 +0000 (UTC) From: "Aman Sinha (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3196) Disable multiple partition by clauses in the same sql query 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-3196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aman Sinha updated DRILL-3196: ------------------------------ Fix Version/s: 1.1.0 > Disable multiple partition by clauses in the same sql query > ----------------------------------------------------------- > > Key: DRILL-3196 > URL: https://issues.apache.org/jira/browse/DRILL-3196 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Affects Versions: 1.0.0 > Reporter: Victoria Markman > Assignee: Sean Hsuan-Yi Chu > Priority: Critical > Labels: window_function > Fix For: 1.1.0 > > > Currently these queries parse and execute, but plan does not look correct. > {code} > 0: jdbc:drill:schema=dfs> explain plan for select sum(a2) over(partition by a2 order by a2), count(*) over(partition by a2,b2,c2) from t2 order by 1,2; > +------+------+ > | text | json | > +------+------+ > | 00-00 Screen > 00-01 Project(EXPR$0=[$0], EXPR$1=[$1]) > 00-02 SelectionVectorRemover > 00-03 Sort(sort0=[$0], sort1=[$1], dir0=[ASC], dir1=[ASC]) > 00-04 Project(EXPR$0=[CASE(>($3, 0), CAST($4):ANY, null)], EXPR$1=[$5]) > 00-05 Window(window#0=[window(partition {0, 1, 2} order by [] range between UNBOUNDED PRECEDING and UNBOUNDED FOLLOWING aggs [COUNT()])]) > 00-06 SelectionVectorRemover > 00-07 Sort(sort0=[$0], sort1=[$1], sort2=[$2], dir0=[ASC], dir1=[ASC], dir2=[ASC]) > 00-08 Window(window#0=[window(partition {0} order by [0] range between UNBOUNDED PRECEDING and CURRENT ROW aggs [COUNT($0), $SUM0($0)])]) > 00-09 SelectionVectorRemover > 00-10 Sort(sort0=[$0], sort1=[$0], dir0=[ASC], dir1=[ASC]) > 00-11 Project(a2=[$1], b2=[$0], c2=[$2]) > 00-12 Scan(groupscan=[ParquetGroupScan [entries=[ReadEntryWithPath [path=maprfs:///drill/testdata/aggregation/t2]], selectionRoot=/drill/testdata/aggregation/t2, numFiles=1, columns=[`a2`, `b2`, `c2`]]]) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)