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 AE9FF10989 for ; Fri, 13 Jun 2014 06:29:30 +0000 (UTC) Received: (qmail 75981 invoked by uid 500); 13 Jun 2014 06:29:24 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 75957 invoked by uid 500); 13 Jun 2014 06:29:24 -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 75945 invoked by uid 99); 13 Jun 2014 06:29:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 06:29:24 +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; Fri, 13 Jun 2014 06:29:23 +0000 Received: (qmail 75700 invoked by uid 99); 13 Jun 2014 06:29:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 06:29:02 +0000 Date: Fri, 13 Jun 2014 06:29:02 +0000 (UTC) From: "Aman Sinha (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-727) indexoutofboundexception while setting up foreman 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-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030305#comment-14030305 ] Aman Sinha commented on DRILL-727: ---------------------------------- Uploaded patch with a fix and unit tests. > indexoutofboundexception while setting up foreman > ------------------------------------------------- > > Key: DRILL-727 > URL: https://issues.apache.org/jira/browse/DRILL-727 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Reporter: Chun Chang > Assignee: Aman Sinha > Priority: Critical > Fix For: 1.0.0-BETA1 > > Attachments: 0001-Fix-DRILL-727-During-logical-transformation-phase-us.patch > > > drill: > 0: jdbc:drill:schema=dfs> select cast(c_groupby as varchar(5)) from data order by c_groupby; > Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "398b5e7a-d263-4b23-8233-d911e781e91a" > endpoint { > address: "qa-node120.qa.lab" > user_port: 31010 > control_port: 31011 > data_port: 31012 > } > error_type: 0 > message: "Failure while setting up Foreman. < AssertionError:[ Internal error: Error while applying rule ExpandConversionRule, args [rel#2332:AbstractConverter.LOGICAL.ANY([]).[1](child=rel#2324:Subset#3.LOGICAL.ANY([]).[],convention=LOGICAL,DrillDistributionTraitDef=ANY([]),sort=[1])] ] < IndexOutOfBoundsException:[ index (1) must be less than size (1) ]" > ] > Error: exception while executing query (state=,code=0) > postgres: > foodmart=# select cast(c_groupby as varchar(5)) from data order by c_groupby; > c_groupby > ----------- > a > a > a > a > a > ab > ab > ab > ab > ab > ab > abc > abc > abc > abc > abc > abc > (23 rows) -- This message was sent by Atlassian JIRA (v6.2#6252)