[
https://issues.apache.org/jira/browse/HIVE-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zheng Shao updated HIVE-624:
----------------------------
Attachment: HIVE-624.1.patch
This patch fixes the problem by rewriting all the converters.
The converters are expanded to a class hierarchy so it can reuse the returned
conversion result (a Writable object) more easily.
I also added the Settable*ObjectInspector which provides a delegated way of
setting the value of an object and creating new objects.
It also adds one new test case for the converters, and one more client positive
test case.
> Fix bug in TypeConverter
> ------------------------
>
> Key: HIVE-624
> URL: https://issues.apache.org/jira/browse/HIVE-624
> Project: Hadoop Hive
> Issue Type: Bug
> Components: Query Processor
> Reporter: Zheng Shao
> Assignee: Zheng Shao
> Attachments: HIVE-624.1.patch
>
>
> There is a bug in the Converter - we are converting all objects to Primitive
> Java objects instead of Writable.
> This has caused some queries to fail:
> {code}
> SELECT IF(false, 1, cast(2 as smallint)) + 3 FROM any_table;
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.