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

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

+1
Please commit once test-patch and unit tests pass.


> New logical plan: Improve error messages when merge schema fail
> ---------------------------------------------------------------
>
>                 Key: PIG-1737
>                 URL: https://issues.apache.org/jira/browse/PIG-1737
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.8.0
>
>         Attachments: PIG-1737-1.patch, PIG-1737-2.patch
>
>
> Pig fail when foreach schema does not match user defined schema with the NPE. 
> The error message should be enhanced. Eg:
> {code}
> a = load '1.txt' as (a0, a1, a2);
> b = group a by (a0, a1);
> c = foreach b generate flatten(group) as c0;
> dump c;
> {code}
> flatten(group) contains 2 items, user cannot name it into c0 alone. However, 
> Pig die with NPE, which is clueless to the user.

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