pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy V. Ryaboy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2902) Pig defaults numeric types to integer instead of double
Date Sun, 02 Sep 2012 23:25:07 GMT

    [ 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

View raw message