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 0AEFC18D00 for ; Wed, 16 Sep 2015 03:25:46 +0000 (UTC) Received: (qmail 96914 invoked by uid 500); 16 Sep 2015 03:25:45 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 96881 invoked by uid 500); 16 Sep 2015 03:25:45 -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 96870 invoked by uid 99); 16 Sep 2015 03:25:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2015 03:25:45 +0000 Date: Wed, 16 Sep 2015 03:25:45 +0000 (UTC) From: "Deneche A. Hakim (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-3786) Query with window function fails with IllegalFormatConversionException 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-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14746751#comment-14746751 ] Deneche A. Hakim commented on DRILL-3786: ----------------------------------------- The failure is happening here: {code} if (runningBatches >= Character.MAX_VALUE) { final String errMsg = String.format("Tried to add more than %d number of batches.", Character.MAX_VALUE); logger.error(errMsg); throw new DrillRuntimeException(errMsg); } {code} We are passing a char (Character.MAX_VALUE) to String.format() where it's expecting an int. I will submit a patch to fix the error message, but the query will still fail because the number of batches the sort needs to handles exceeds the maximum SelectionVector4 can index. > Query with window function fails with IllegalFormatConversionException > ---------------------------------------------------------------------- > > Key: DRILL-3786 > URL: https://issues.apache.org/jira/browse/DRILL-3786 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 1.2.0 > Environment: 10 Performance Nodes > DRILL_MAX_DIRECT_MEMORY=100g > DRILL_INIT_HEAP="8g" > DRILL_MAX_HEAP="8g" > planner.memory.query_max_memory_per_node bumped up to 20 GB > TPC-DS SF 1000 dataset (Parquet) > Reporter: Abhishek Girish > Assignee: Deneche A. Hakim > Fix For: 1.2.0 > > Attachments: drillbit.log.txt, query_profile.json > > > Query fails with Runtime exception: > {code:sql} > SELECT sum(s.ss_quantity) OVER (PARTITION BY s.ss_store_sk, s.ss_customer_sk ORDER BY s.ss_store_sk) FROM store_sales s LIMIT 20; > java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR: IllegalFormatConversionException: d != java.lang.Character > Fragment 1:0 > [Error Id: 12b51c0c-4992-4ceb-89c4-c99307529c7e on ucs-node8.perf.lab:31010] > at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73) > at sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87) > at sqlline.TableOutputFormat.print(TableOutputFormat.java:118) > 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 logs and profile attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)