[
https://issues.apache.org/jira/browse/PIG-4841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Noguchi updated PIG-4841:
------------------------------
Description:
Inline-op+foreach+schema("as") fails.
{code}
knoguchi@truelisten-lm pig> cat test6.pig
A = load 'input.txt' as (a1:int, a2:int);
B = FOREACH (FOREACH A GENERATE a1 as b1) GENERATE b1;
dump B;
{code}
{panel}
2016-03-11 17:57:31,364 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR
1000: Error during parsing. Lexical error at line 5, column 0. Encountered:
<EOF> after : ""
{panel}
was:
Nested-op+foreach+schema("as") fails.
{code}
knoguchi@truelisten-lm pig> cat test6.pig
A = load 'input.txt' as (a1:int, a2:int);
B = FOREACH (FOREACH A GENERATE a1 as b1) GENERATE b1;
dump B;
{code}
{panel}
2016-03-11 17:57:31,364 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR
1000: Error during parsing. Lexical error at line 5, column 0. Encountered:
<EOF> after : ""
{panel}
Summary: Inline-op with schema declaration fails with syntax error
(was: Nested-op with schema declaration fails with syntax error)
Rohini pointed out to me that "inline" is the terminology I should be using.
Changing summary.
I took "nested" from {{QueryParser.g}}'s "nested_op_clause".
Maybe we should update that later.
> Inline-op with schema declaration fails with syntax error
> ---------------------------------------------------------
>
> Key: PIG-4841
> URL: https://issues.apache.org/jira/browse/PIG-4841
> Project: Pig
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.11.1, 0.15.0
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Minor
>
> Inline-op+foreach+schema("as") fails.
> {code}
> knoguchi@truelisten-lm pig> cat test6.pig
> A = load 'input.txt' as (a1:int, a2:int);
> B = FOREACH (FOREACH A GENERATE a1 as b1) GENERATE b1;
> dump B;
> {code}
> {panel}
> 2016-03-11 17:57:31,364 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR
> 1000: Error during parsing. Lexical error at line 5, column 0. Encountered:
> <EOF> after : ""
> {panel}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)