You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2009/12/01 22:59:20 UTC

[jira] Commented: (PIG-1118) expression with aggregate functions returning null, with accumulate interface

    [ https://issues.apache.org/jira/browse/PIG-1118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784462#action_12784462 ] 

Thejas M Nair commented on PIG-1118:
------------------------------------

Note that result of "1 + SUM(l.c) + SUM(l.c)" above is null . It should have been 353L .

> expression with aggregate functions returning null, with accumulate interface
> -----------------------------------------------------------------------------
>
>                 Key: PIG-1118
>                 URL: https://issues.apache.org/jira/browse/PIG-1118
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Thejas M Nair
>            Assignee: Ying He
>
> The problem is in trunk . It works fine in 0.6 branch.
> l = load '/tmp/students.txt' as (a : chararray,b : chararray,c : int);
> grunt> g = group l by 1;
> grunt> dump g;
> (1,{(asdfxc,M,23),(qwer,F,21),(uhsdf,M,34),(zxldf,M,21),(qwer,F,23),(oiue,M,54)})
> grunt> f = foreach g generate SUM(l.c), 1 + SUM(l.c) + SUM(l.c);
> grunt> dump f;
> (176L,)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.