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

Steven Phillips commented on DRILL-960:
---------------------------------------

I don't think this problem is specific to orc files. There are two problems I 
see here:

We have some code (Types.getMajorTypeFromName()) which converts "string" to 
VARCHAR16. But elsewhere in hive reader we treat "string" as VARCHAR. So that 
explains the ClassCastException

The other issue is the fact that we are trying to populate a partition vector 
at all. Since this query is not selecting a partition column, we shouldn't be 
populating it.

Can you upload the physical plan for this query a an attachment?

> Doing a select on a orc partitioned hive table fails with ClassCastException
> ----------------------------------------------------------------------------
>
>                 Key: DRILL-960
>                 URL: https://issues.apache.org/jira/browse/DRILL-960
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Hive
>            Reporter: Ramana Inukonda Nagaraj
>            Assignee: Venki Korukanti
>         Attachments: orc_complex.q, orc_create_people.txt
>
>
> SELECT id FROM orc_create_people;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while 
> running query.[error_id: "dcfd06bf-9239-44cf-8f16-f92ffac39005"
> endpoint {
>   address: "drillats4.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while running fragment. < ClassCastException:[ 
> org.apache.drill.exec.vector.Var16CharVector cannot be cast to 
> org.apache.drill.exec.vector.VarCharVector ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to