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 A4D5211EB8 for ; Wed, 13 Aug 2014 02:02:36 +0000 (UTC) Received: (qmail 8106 invoked by uid 500); 13 Aug 2014 02:02:36 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 8077 invoked by uid 500); 13 Aug 2014 02:02:36 -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 8068 invoked by uid 99); 13 Aug 2014 02:02:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 02:02:36 +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; Wed, 13 Aug 2014 02:02:14 +0000 Received: (qmail 7811 invoked by uid 99); 13 Aug 2014 02:02:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 02:02:12 +0000 Date: Wed, 13 Aug 2014 02:02:12 +0000 (UTC) From: "Hanifi Gunes (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1205) group by causes access to DeadBuf 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-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hanifi Gunes updated DRILL-1205: -------------------------------- Assignee: DrillCommitter (was: Hanifi Gunes) > group by causes access to DeadBuf > --------------------------------- > > Key: DRILL-1205 > URL: https://issues.apache.org/jira/browse/DRILL-1205 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Operators > Affects Versions: 1.0.0 > Reporter: Jim Scott > Assignee: DrillCommitter > Fix For: 0.5.0 > > Attachments: DRILL-1205.1.patch.txt > > > Might be related to drill-922 > This runs just fine: > select count(*) as incidents from dfs.`/tmp/Downloads/Crimes_-_2001_to_present.csv` where columns[3] in (SELECT columns[2] FROM dfs.`/tmp/Downloads/Sex_Offenders.csv`); > This fails: > select count(*) as incidents, columns[5] as type, columns[6] as subtype from dfs.`/tmp/Downloads/Crimes_-_2001_to_present.csv` > where columns[3] in (SELECT columns[2] FROM dfs.`/tmp/Downloads/Sex_Offenders.csv`) > group by columns[6], columns[5] > order by incidents desc limit 10; > Error: > Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "26218e5d-5748-43b9-bc77-ab82d9a1c509" > endpoint { > address: "myserver" > user_port: 31010 > control_port: 31011 > data_port: 31012 > } > error_type: 0 > message: "Failure while running fragment. < IndexOutOfBoundsException:[ index: 28388, length: 4 (expected: range(0, 28388)) ]" > ] > Error: exception while executing query (state=,code=0) > 0: jdbc:drill:zk=local> Exception in thread "e5e6763f-6d42-42b8-9a75-e972c9cf90c2:frag:0:0 - Producer Thread" java.lang.UnsupportedOperationException: Attemped to access a DeadBuf. This would happen if you attempted to interact with a buffer that has been moved or not yet initialized. > at org.apache.drill.exec.record.DeadBuf.capacity(DeadBuf.java:70) > at org.apache.drill.exec.vector.UInt4Vector.getValueCapacity(UInt4Vector.java:106) > at org.apache.drill.exec.vector.VarCharVector.getValueCapacity(VarCharVector.java:120) > at org.apache.drill.exec.vector.RepeatedVarCharVector.getValueCapacity(RepeatedVarCharVector.java:113) > at org.apache.drill.exec.vector.RepeatedVarCharVector$Mutator.startNewGroup(RepeatedVarCharVector.java:379) > at org.apache.drill.exec.store.text.DrillTextRecordReader.next(DrillTextRecordReader.java:123) > at org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:138) > at org.apache.drill.exec.physical.impl.producer.ProducerConsumerBatch$Producer.run(ProducerConsumerBatch.java:122) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.2#6252)