[
https://issues.apache.org/jira/browse/PIG-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Santhosh Srinivasan updated PIG-500:
------------------------------------
Attachment: PIG-500.patch
Patch to fix issue reported in the bug. I also added a check for null load
function when casting from bytearray to a Pig type.
All uni test cases passed.
> 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
>
> Attachments: PIG-500.patch
>
>
> 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.