[
https://issues.apache.org/jira/browse/PIG-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714278#action_12714278
]
Milind Bhandarkar commented on PIG-796:
---------------------------------------
So, can we live with the classcastexception generated by the front end ? I
recall reading somewhere that pigs do what they are told. If they are told to
do things that are even impossible for humans to comprehend, i.e. somehow
interpret a byte array to be an integer, and then to convert them to strings,
how would they cope up ?
IMHO, eliminating such implicit casts would reduce complexity of pig, and would
fit in the pig philosphy. But that means being able to convert everything to a
chararray at most. If someone request a chararray cast of a bytearray, give
them a hex representation, and have them write a UDF to convert hex string to
string (i.e. toInt('0x'+myvalue) in the above code.)
thoughts ?
> 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.