[
https://issues.apache.org/jira/browse/PIG-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714209#action_12714209
]
Ashutosh Chauhan commented on PIG-796:
--------------------------------------
Since Pig allows values in a map to be of different types caching the type may
not be safe. There are two possible alternatives:
a) Find type by introspection every time. This will ensure we are always
correct and can handle all cases (including when values in maps are of
different types). This though will incur a performance overhead for every cast
call.
b) Find the type first time and then cache it for subsequent calls. When
encountered with different type Pig will bail out with a ClassCastException.
This will avoid performance overhead but Pig will die when values in maps are
of different types.
In this performance Vs "handling all cases" trade-off wondering which route
should we go ?
> 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
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.