You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2009/11/12 05:21:39 UTC
[jira] Assigned: (PIG-321) Incorrect results from arithmetic
expression
[ https://issues.apache.org/jira/browse/PIG-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Gates reassigned PIG-321:
------------------------------
Assignee: Pi Song
> Incorrect results from arithmetic expression
> --------------------------------------------
>
> Key: PIG-321
> URL: https://issues.apache.org/jira/browse/PIG-321
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.2.0
> Reporter: Pradeep Kamath
> Assignee: Pi Song
> Fix For: 0.2.0
>
> Attachments: Pig321_parser.patch
>
>
> Query:
> {code}
> a = load '/user/pig/tests/data/singlefile/studenttab10k' as (name:chararray, age:int, gpa:double);
> b = foreach a generate 1 + 0.2f + 253645L, gpa+1;
> store b into '/tmp/arithtest';
> {code}
> Results
> 25365.2 2.9
> 25365.2 4.65
> ...
> The first projection above has 253645 as a Long constant. The results have 25365.2 which is an order less
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.