[ 
https://issues.apache.org/jira/browse/DRILL-2350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14359405#comment-14359405
 ] 

Deneche A. Hakim commented on DRILL-2350:
-----------------------------------------

I'm getting a similar error on the following json file:
{code}
{ "loc" : [ -75.2, 40 ] }
{code}

Here is what I get:
{noformat}
0: jdbc:drill:zk=localhost:2181> select * from `t.json`;
Query failed: Query stopped., Needed to be in state INIT or IN_BIGINT but in 
mode IN_FLOAT8 [ 349aaff9-2ab6-44a6-bb64-afcba3676f4a on 10.250.0.86:31010 ]
  (java.lang.IllegalStateException) Needed to be in state INIT or IN_BIGINT but 
in mode IN_FLOAT8
    org.apache.drill.exec.vector.complex.impl.SingleListWriter.bigInt():387
    org.apache.drill.exec.vector.complex.fn.JsonReader.writeData():422
    org.apache.drill.exec.vector.complex.fn.JsonReader.writeData():256
    org.apache.drill.exec.vector.complex.fn.JsonReader.writeDataSwitch():208
    org.apache.drill.exec.vector.complex.fn.JsonReader.writeToVector():182
    org.apache.drill.exec.vector.complex.fn.JsonReader.write():156
    org.apache.drill.exec.store.easy.json.JSONRecordReader.next():125
    org.apache.drill.exec.physical.impl.ScanBatch.next():165
    
org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next():118
    org.apache.drill.exec.physical.impl.BaseRootExec.next():67
    org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext():97
    org.apache.drill.exec.physical.impl.BaseRootExec.next():57
    org.apache.drill.exec.work.fragment.FragmentExecutor.run():121
    org.apache.drill.exec.work.WorkManager$RunnableWrapper.run():303
    .......():0

Error: exception while executing query: Failure while executing query. 
(state=,code=0)
{noformat}

> Star query failed with exception on JSON data
> ---------------------------------------------
>
>                 Key: DRILL-2350
>                 URL: https://issues.apache.org/jira/browse/DRILL-2350
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - JSON, Storage - MongoDB
>    Affects Versions: 0.7.0
>            Reporter: Bhallamudi Venkata Siva Kamesh
>            Assignee: Steven Phillips
>             Fix For: 0.8.0
>
>
> Query failed while executing following query on JSON data with following 
> exception
> {noformat}select * from hdfs.drill.`zips.json`;{noformat}
> {noformat}
> 2015-02-28 21:37:34,058 [2b0e183a-7597-0a1e-fd12-56d91173af70:frag:0:0] ERROR 
> o.a.d.e.w.f.AbstractStatusReporter - Error 
> 6b26e17b-f114-47a9-9cf7-1a77ba52a8e6: Failure while running fragment.
> java.lang.IllegalStateException: Needed to be in state INIT or IN_BIGINT but 
> in mode IN_FLOAT8
>       at 
> org.apache.drill.exec.vector.complex.impl.SingleListWriter.bigInt(SingleListWriter.java:387)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:422)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:256)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.vector.complex.fn.JsonReader.writeDataSwitch(JsonReader.java:208)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.vector.complex.fn.JsonReader.writeToVector(JsonReader.java:182)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.vector.complex.fn.JsonReader.write(JsonReader.java:156) 
> ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.store.easy.json.JSONRecordReader.next(JSONRecordReader.java:125)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:165) 
> ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:118)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:67) 
> ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:97)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:57) 
> ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:121)
>  ~[drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:303)
>  [drill-java-exec-0.8.0-SNAPSHOT-rebuffed.jar:0.8.0-SNAPSHOT]
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>  [na:1.7.0_51]
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  [na:1.7.0_51]
>       at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to