Neeraja created DRILL-458:
-----------------------------
Summary: Querying a JSON with an array of scalars throws exception
Key: DRILL-458
URL: https://issues.apache.org/jira/browse/DRILL-458
Project: Apache Drill
Issue Type: Bug
Reporter: Neeraja
Below is the query I issued
jdbc:drill:> select * from
dfs.`/home/mapr/apache-drill-1.0.0-m2-incubating-SNAPSHOT/sample-data/fb.json`;
Exception is below.
Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while
running query.[error_id: "e281aa33-a140-4451-924f-73a2c7afee84"
error_type: 0
message: "Failure while running fragment. < ClassCastException:[
org.apache.drill.exec.vector.NullableVarCharVector cannot be cast to
org.apache.drill.exec.vector.RepeatedVarCharVector ]"
]
fb.json is below. The JSON is a valid document by itself.
{ "data" : { "actions" : [ "Comment",
"Like"
],
"created_time" : "2010-08-02T21:27:44+0000",
"from" : { "id" : "X12",
"name" : "Tom Brady"
},
"id" : "X999_Y999",
"message" : "Looking forward to 2010!",
"type" : "status",
"updated_time" : "2010-08-02T21:27:44+0000"
} }
--
This message was sent by Atlassian JIRA
(v6.2#6252)