You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2011/04/01 21:13:05 UTC
[jira] [Created] (PIG-1957) Pig parser gives misleading error
message when the next foreach block has syntactic errors
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
[jira] [Resolved] (PIG-1957) Pig parser gives misleading error
message when the next foreach block has syntactic errors
Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xuefu Zhang resolved PIG-1957.
------------------------------
Resolution: Fixed
Fixed by the fix for PIG-1956
> 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