hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pi Song (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-321) Incorrect results from arithmetic expression
Date Mon, 21 Jul 2008 12:21:31 GMT

     [ https://issues.apache.org/jira/browse/PIG-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pi Song updated PIG-321:
------------------------

    Attachment: Pig321_parser.patch

Trivial fix in the parser

> Incorrect results from arithmetic expression
> --------------------------------------------
>
>                 Key: PIG-321
>                 URL: https://issues.apache.org/jira/browse/PIG-321
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pradeep Kamath
>             Fix For: types_branch
>
>         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.


Mime
View raw message