[
https://issues.apache.org/jira/browse/DRILL-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Parth Chandra updated DRILL-446:
--------------------------------
Component/s: Execution - Data Types
> Classcast exception while input data has an array field.
> --------------------------------------------------------
>
> Key: DRILL-446
> URL: https://issues.apache.org/jira/browse/DRILL-446
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - Data Types
> Affects Versions: 0.4.0
> Reporter: Bhallamudi Venkata Siva Kamesh
> Priority: Critical
> Fix For: 0.4.0
>
> Attachments: DRILL-446.patch
>
>
> I am trying to load the data which is of the following format
> {noformat}
> {
> "test": "ABC",
> "test2": [1,2,3],
> "a": "drill"
> }
> {
> "test": "abc",
> "test2": [1,2,3,4],
> "a": "apache"
> }
> {noformat}
> and executing *SELECT* query on the above data. While doing that I am getting
> the following exception
> {noformat}
> java.lang.ClassCastException:
> org.apache.drill.exec.vector.NullableVarCharVector cannot be cast to
> org.apache.drill.exec.vector.RepeatedVarCharVector
> at
> org.apache.drill.exec.store.easy.json.JSONRecordReader$ReadType.addValueToVector(JSONRecordReader.java:459)
> at
> org.apache.drill.exec.store.easy.json.JSONRecordReader$ReadType.recordData(JSONRecordReader.java:389)
> at
> org.apache.drill.exec.store.easy.json.JSONRecordReader$ReadType.readRecord(JSONRecordReader.java:295)
> at
> org.apache.drill.exec.store.easy.json.JSONRecordReader.next(JSONRecordReader.java:134)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)