[ https://issues.apache.org/jira/browse/PIG-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai resolved PIG-1737. ----------------------------- Resolution: Fixed Hadoop Flags: [Reviewed] test-patch result: [exec] +1 overall. [exec] [exec] +1 @author. The patch does not contain any @author tags. [exec] [exec] +1 tests included. The patch appears to include 3 new or modified tests. [exec] [exec] +1 javadoc. The javadoc tool did not generate any warning messages. [exec] [exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings. [exec] [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings. [exec] [exec] +1 release audit. The applied patch does not increase the total number of release audit warnings. All tests pass. Patch committed to both trunk and 0.8 branch. > 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.