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

Timothy Chen resolved DRILL-446.
--------------------------------

    Resolution: Fixed

> 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
>    Affects Versions: 1.0.0-milestone-2
>            Reporter: Bhallamudi Venkata Siva Kamesh
>            Priority: Critical
>         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.2#6252)

Reply via email to