[
https://issues.apache.org/jira/browse/HIVE-5648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805080#comment-13805080
]
Jason Dere commented on HIVE-5648:
----------------------------------
ExprNodeConstantDesc should be changed here, for qualified types (varchar, and
soon decimal with Xuefu's changes), we should be passing along the type
qualifiers whenever possible, and this requires the PrimitiveTypeInfo.
PrimitiveCategory, being just an enum, wouldn't provide be able to provide
varchar length or precision/scale.
We could change getPrimitiveJavaObjectInspector(PrimitiveCategory) to return a
default varchar object inspector for PrimitiveCategory.VARCHAR. I'll add that
to the patch.
> 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> 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)