[
https://issues.apache.org/jira/browse/PIG-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633036#action_12633036
]
Olga Natkovich commented on PIG-442:
------------------------------------
First one. I see the following error in the log:
------------- Standard Error -----------------
Printing the logical plan
Store Test-Plan-Builder-95 Schema: null Type: Unknown
|
|---Load Test-Plan-Builder-94 Schema: null Type: bag
08/09/21 00:46:55 ERROR test.TestLogicalPlanBuilder:
org.apache.pig.impl.logicalLayer.parser.ParseException: Unrecognized alias A
08/09/21 00:46:55 ERROR test.TestLogicalPlanBuilder:
org.apache.pig.impl.logicalLayer.parser.ParseException: Encountered "group" at
line 1, column 9.
Was expecting one of:
<IDENTIFIER> ...
"(" ...
08/09/21 00:46:55 ERROR test.TestLogicalPlanBuilder:
org.apache.pig.impl.logicalLayer.parser.ParseException: Encountered "generate"
at line 1, column 1.
Was expecting one of:
"define" ...
"load" ...
"filter" ...
"foreach" ...
"order" ...
"distinct" ...
"cogroup" ...
"join" ...
"cross" ...
"union" ...
"split" ...
"group" ...
"stream" ...
"store" ...
"limit" ...
<IDENTIFIER> ...
"(" ...
> Disambiguated alias after a foreach flatten is not accessible a couple of
> statements after the foreach
> ------------------------------------------------------------------------------------------------------
>
> Key: PIG-442
> URL: https://issues.apache.org/jira/browse/PIG-442
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Santhosh Srinivasan
> Assignee: Santhosh Srinivasan
> Fix For: types_branch
>
> Attachments: PIG-442.patch
>
>
> In statements following a foreach which flattens its cogrouped inputs,
> unambiguous column names are not accessible via the :: specifier. A
> reproducible case is given below:
> {code}
> grunt> a = load 'one' as (name, age, gpa);
> grunt> b = load 'two' as (name, age, height);
> grunt> c = cogroup a by name, b by name;
> grunt> d = foreach c generate flatten(a), flatten(b);
> grunt> e = group d by height;
> grunt> f = foreach e generate group, COUNT(d.a::height);
> 114501 [main] ERROR org.apache.pig.tools.grunt.GruntParser -
> java.io.IOException: Invalid alias: a::height in {a::name: bytearray,a::age:
> bytearray,gpa: bytearray,b::name: bytearray,b::age: bytearray,height:
> bytearray}
> at org.apache.pig.PigServer.parseQuery(PigServer.java:293)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:258)
> at
> org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:432)
> at
> org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:242)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.