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