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 4E3ED17F03 for ; Fri, 16 Jan 2015 00:15:33 +0000 (UTC) Received: (qmail 61563 invoked by uid 500); 16 Jan 2015 00:15:35 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 61535 invoked by uid 500); 16 Jan 2015 00:15:35 -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 61525 invoked by uid 99); 16 Jan 2015 00:15:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 00:15:35 +0000 Date: Fri, 16 Jan 2015 00:15:35 +0000 (UTC) From: "Hanifi Gunes (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1555) IllegalStateException in querying three dimensional json array 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-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hanifi Gunes updated DRILL-1555: -------------------------------- Attachment: DRILL-1555.1.patch.txt > IllegalStateException in querying three dimensional json array > -------------------------------------------------------------- > > Key: DRILL-1555 > URL: https://issues.apache.org/jira/browse/DRILL-1555 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types > Affects Versions: 0.7.0 > Reporter: Chun Chang > Assignee: Hanifi Gunes > Priority: Minor > Fix For: 0.8.0 > > Attachments: DRILL-1555.1.patch.txt > > > code base: > #Mon Oct 13 15:16:16 PDT 2014 > git.commit.id.abbrev=cd6dd9c > I have a json array like this inside a json file > "array_array":[["hello", "yeah"], ["a", "b"], [["c", "d"], ["e", "f", "g"]], > Query this array gives me the following exception: > 0: jdbc:drill:schema=dfs> select array_array from `complex.json`; > Query failed: Screen received stop request sent. Needed to be in state INIT or IN_LIST but in mode IN_VARCHAR [2718c521-f05f-49bd-adbd-7834623d492e] > Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0) > Here is the exception in drill bit.log: > java.lang.IllegalStateException: Needed to be in state INIT or IN_LIST but in mode IN_VARCHAR > at org.apache.drill.exec.vector.complex.impl.RepeatedListWriter.list(RepeatedListWriter.java:162) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:319) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:319) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:216) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.vector.complex.fn.JsonReader.writeToVector(JsonReader.java:146) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.vector.complex.fn.JsonReader.write(JsonReader.java:130) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.vector.complex.fn.JsonReaderWithState.write(JsonReaderWithState.java:73) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.store.easy.json.JSONRecordReader2.next(JSONRecordReader2.java:111) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:158) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at org.apache.drill.exec.physical.impl.producer.ProducerConsumerBatch$Producer.run(ProducerConsumerBatch.java:128) ~[drill-java-exec-0.7.0-incubating-SNAPSHOT-rebuffed.jar:0.7.0-incubating-SNAPSHOT] > at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45] > 09:47:34.824 [10acefc4-3012-4a7e-9f2d-5be7292663c7:frag:0:0] ERROR o.a.d.e.w.f.AbstractStatusReporter - Error dd2c9275-61d9-4604-9faf-c6977247cf4b: Failure while running fragment. -- This message was sent by Atlassian JIRA (v6.3.4#6332)