[
https://issues.apache.org/jira/browse/PIG-893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733773#action_12733773
]
Santhosh Srinivasan commented on PIG-893:
-----------------------------------------
What are the semantics of chararray (string) to numeric types?
Pig does not support conversion of any non-bytearray type to bytearray. The
proposal in the jira description is minimalistic. Does it match with that of
SQL?
Without clear articulation about what these things mean, we cannot/should not
support chararray to numeric type conversions. PiggyBank already supports UDFs
that convert strings to int, double, etc.
It's a nice to have, as part of the language but its better positioned as a
UDF. If clear semantics are laid out then making it part of the language will
be a matter of consensus.
> support cast of chararray to other simple types
> -----------------------------------------------
>
> Key: PIG-893
> URL: https://issues.apache.org/jira/browse/PIG-893
> Project: Pig
> Issue Type: New Feature
> Reporter: Thejas M Nair
>
> Pig should support casting of chararray to
> integer,long,float,double,bytearray. If the conversion fails for reasons such
> as overflow, cast should return null and log a warning.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.