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 1346117CED for ; Thu, 25 Jun 2015 02:34:05 +0000 (UTC) Received: (qmail 33880 invoked by uid 500); 25 Jun 2015 02:34:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 33851 invoked by uid 500); 25 Jun 2015 02:34:04 -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 33841 invoked by uid 99); 25 Jun 2015 02:34:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2015 02:34:04 +0000 Date: Thu, 25 Jun 2015 02:34:04 +0000 (UTC) From: "Deneche A. Hakim (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3288) False "Hash aggregate does not support schema changes" error message in a query with merge join and hash aggregation 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-3288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deneche A. Hakim updated DRILL-3288: ------------------------------------ Assignee: Victoria Markman (was: Deneche A. Hakim) > False "Hash aggregate does not support schema changes" error message in a query with merge join and hash aggregation > -------------------------------------------------------------------------------------------------------------------- > > Key: DRILL-3288 > URL: https://issues.apache.org/jira/browse/DRILL-3288 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 1.0.0 > Reporter: Victoria Markman > Assignee: Victoria Markman > Fix For: 1.1.0 > > Attachments: j6.parquet, j7.parquet > > > This error seems to be happening only when you have both window and regular aggregate function in a query. You will need to disable hash join to reproduce this error: "alter session set `planner.enable_hashjoin` = false" > Columns in table j6 are all of 'optional' type, columns in j7 are all "required" type. (attached sample for each) > Here are two queries that are failing for me: > Query 1 (aggregate function in the having clause): > {code} > 0: jdbc:drill:schema=dfs> select > . . . . . . . . . . . . > j6.c_integer, > . . . . . . . . . . . . > sum(j6.c_integer) over(partition by j6.c_date order by j6.c_time) > . . . . . . . . . . . . > from > . . . . . . . . . . . . > j6, j7 > . . . . . . . . . . . . > where j6.c_integer = j7.c_integer > . . . . . . . . . . . . > group by > . . . . . . . . . . . . > j6.c_date, j6.c_time, j6.c_integer > . . . . . . . . . . . . > having > . . . . . . . . . . . . > avg(j7.c_integer) > 0; > java.lang.RuntimeException: java.sql.SQLException: UNSUPPORTED_OPERATION ERROR: Hash aggregate does not support schema changes > Fragment 0:0 > [Error Id: ed0140d4-244c-4895-bf65-6ea1d085382e on atsqa4-133.qa.lab:31010] > at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73) > at sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:85) > at sqlline.TableOutputFormat.print(TableOutputFormat.java:116) > at sqlline.SqlLine.print(SqlLine.java:1583) > at sqlline.Commands.execute(Commands.java:852) > at sqlline.Commands.sql(Commands.java:751) > at sqlline.SqlLine.dispatch(SqlLine.java:738) > at sqlline.SqlLine.begin(SqlLine.java:612) > at sqlline.SqlLine.start(SqlLine.java:366) > at sqlline.SqlLine.main(SqlLine.java:259) > {code} > Query 2: (window function and aggregate function in projection list): > {code} > 0: jdbc:drill:schema=dfs> select > . . . . . . . . . . . . > j6.c_integer, > . . . . . . . . . . . . > avg(j7.c_integer), > . . . . . . . . . . . . > sum(j6.c_integer) over(partition by j6.c_date order by j6.c_time) > . . . . . . . . . . . . > from > . . . . . . . . . . . . > j6, j7 > . . . . . . . . . . . . > where j6.c_integer = j7.c_integer > . . . . . . . . . . . . > group by > . . . . . . . . . . . . > j6.c_date, j6.c_time, j6.c_integer; > java.lang.RuntimeException: java.sql.SQLException: UNSUPPORTED_OPERATION ERROR: Hash aggregate does not support schema changes > Fragment 0:0 > [Error Id: 370188bd-012d-4fc2-a365-fe9e482aaa0f on atsqa4-133.qa.lab:31010] > at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73) > at sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:85) > at sqlline.TableOutputFormat.print(TableOutputFormat.java:116) > at sqlline.SqlLine.print(SqlLine.java:1583) > at sqlline.Commands.execute(Commands.java:852) > at sqlline.Commands.sql(Commands.java:751) > at sqlline.SqlLine.dispatch(SqlLine.java:738) > at sqlline.SqlLine.begin(SqlLine.java:612) > at sqlline.SqlLine.start(SqlLine.java:366) > at sqlline.SqlLine.main(SqlLine.java:259) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)