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
             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.

Reply via email to