[
https://issues.apache.org/jira/browse/PIG-796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ashutosh Chauhan updated PIG-796:
---------------------------------
Attachment: 796.patch
updated patch.
This patch fixes the following issue: Sometimes (e.g. when values coming out of
map lookup) Pig assumes type of element as ByteArray when actually it is of
some other type. In such cases request for a Cast fails.
This patch first finds out the actual type of element before casting it
(specifically when Pig thinks its ByteArray) and then do the cast. It also
caches the type. When type changes ClassCastException is raised which gets
caught and cast is then tried again. Cached value of type is also updated. This
ensures that type is not determined on each cast call as well as handling of
casts when types changes from one call to the next.
> support conversion from numeric types to chararray
> ---------------------------------------------------
>
> Key: PIG-796
> URL: https://issues.apache.org/jira/browse/PIG-796
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.2.0
> Reporter: Olga Natkovich
> Attachments: 796.patch, pig-796.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.