You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org> on 2012/09/03 01:25:07 UTC
[jira] [Commented] (PIG-2902) Pig defaults numeric types to integer
instead of double
[ https://issues.apache.org/jira/browse/PIG-2902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447055#comment-13447055 ]
Dmitriy V. Ryaboy commented on PIG-2902:
----------------------------------------
You are probably right, but would changing this break existing scripts / assumptions?
> Pig defaults numeric types to integer instead of double
> -------------------------------------------------------
>
> Key: PIG-2902
> URL: https://issues.apache.org/jira/browse/PIG-2902
> Project: Pig
> Issue Type: Bug
> Reporter: Jie Li
>
> This was observed in PIG-2835, where Pig defaults the type used in SUM() as integer while it's actually double, thus parsing each number to integer would throw an exception. PIG-2835 replaced the expensive exception handling with a light weight sanity check, but do we really want to default the numeric types to integer?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira