Pig parser gives misleading error message when the next foreach block has
syntactic errors
------------------------------------------------------------------------------------------
Key: PIG-1957
URL: https://issues.apache.org/jira/browse/PIG-1957
Project: Pig
Issue Type: Bug
Affects Versions: 0.9.0
Reporter: Xuefu Zhang
Assignee: Xuefu Zhang
Fix For: 0.9.0
For the following pig script:
a = load ':INPATH:/singlefile/studenttab10k' as (name, age, gpa);
b = group a by name;
c = foreach b { ba = filter a by age < '25'; bb = foreach ba generate gpa;
generate group, flatten(bb);}
parser gives the following error message:
<line 3, column 14> mismatched input '{' expecting GENERATE
The error seems to indicate that we do not support nested foreach, which is
misleading. The error message needs to be improved.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira