[ 
https://issues.apache.org/jira/browse/DRILL-2879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bhallamudi Venkata Siva Kamesh updated DRILL-2879:
--------------------------------------------------
    Attachment: extended.json

Exported MongoDB data into a file and executed the following query
{noformat}
select * from dfs.tmp.`extended.json` where name = 'd';
{noformat}
and it failed with the following exception
{noformat}
Query failed: DATA_READ ERROR: Error parsing JSON - Failure while reading 
ExtendedJSON typed value. Expected a END_OBJECT but received a token of type 
FIELD_NAME

Caused by: com.fasterxml.jackson.core.JsonParseException: Failure while reading 
ExtendedJSON typed value. Expected a END_OBJECT but received a token of type 
FIELD_NAME
 at [Source: org.apache.drill.exec.store.dfs.DrillFSDataInputStream@3de02302; 
line: 2, column: 129]
        at 
org.apache.drill.exec.vector.complex.fn.VectorOutput.checkNextToken(VectorOutput.java:128)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.VectorOutput.checkNextToken(VectorOutput.java:116)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.VectorOutput.innerRun(VectorOutput.java:84)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.VectorOutput$MapVectorOutput.run(VectorOutput.java:228)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.JsonReader.writeMapDataIfTyped(JsonReader.java:429)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:308)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.JsonReader.writeDataSwitch(JsonReader.java:242)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.JsonReader.writeToVector(JsonReader.java:180)
 ~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.vector.complex.fn.JsonReader.write(JsonReader.java:146) 
~[drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        at 
org.apache.drill.exec.store.easy.json.JSONRecordReader.next(JSONRecordReader.java:193)
 [drill-java-exec-0.9.0-SNAPSHOT-rebuffed.jar:0.9.0-SNAPSHOT]
        ... 44 common frames omitted
{noformat}

> Drill extended json's support $oid
> ----------------------------------
>
>                 Key: DRILL-2879
>                 URL: https://issues.apache.org/jira/browse/DRILL-2879
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - JSON
>            Reporter: Bhallamudi Venkata Siva Kamesh
>            Assignee: Steven Phillips
>         Attachments: extended.json, extendedjson.patch
>
>
> Enhancing JSON reader to parse  $oid (from mongo). 



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

Reply via email to