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

Jason Dere updated HIVE-5648:
-----------------------------

    Attachment: HIVE-5648.2.patch

patch v2, which prevents the error from occurring if a varchar object inspector 
is requested using just a PrimitiveCategory.  This is similar to what is done 
for decimal in the patch for HIVE-3976.

> error when casting partition column to varchar in where clause 
> ---------------------------------------------------------------
>
>                 Key: HIVE-5648
>                 URL: https://issues.apache.org/jira/browse/HIVE-5648
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-5648.1.patch, HIVE-5648.2.patch
>
>
> hive> select * from partition_varchar_2 where cast(dt as varchar(10)) = 
> '2000-01-01';
> FAILED: RuntimeException org.apache.hadoop.hive.ql.metadata.HiveException: 
> java.lang.RuntimeException: Internal error: Cannot find ObjectInspector  for 
> VARCHAR



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to