You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Santhosh Srinivasan (JIRA)" <ji...@apache.org> on 2008/10/17 17:34:46 UTC

[jira] Updated: (PIG-500) Load Func for POCast is not being set in some cases

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

Santhosh Srinivasan updated PIG-500:
------------------------------------

    Assignee: Santhosh Srinivasan

> Load Func for POCast is not being set in some cases
> ---------------------------------------------------
>
>                 Key: PIG-500
>                 URL: https://issues.apache.org/jira/browse/PIG-500
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Pradeep Kamath
>            Assignee: Santhosh Srinivasan
>             Fix For: types_branch
>
>
> The POCasts resulting from the following scripts have a null load Function reference which leads to run time null pointer exceptions:
> Script 1:
> {code}
> a = load 'a' as (s);
> b = foreach a generate s#'a' as x;
> c = foreach b generate (int) x#'a' as intx;
> {code}
> Script 2:
> {code}
> a = load 'bla' as (s, m, l);
> b = foreach a generate s#'x' as f1, s#'y' as f2, s#'z' as f3;
> c = group b by f1;
> d = foreach c {
>     fil = filter b by f2 == 1;
>     generate flatten(group), SUM(fil.f3);
>     }
> {code}

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