You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Santhosh Srinivasan (JIRA)" <ji...@apache.org> on 2008/09/20 20:45:44 UTC
[jira] Updated: (PIG-442) Disambiguated alias after a foreach
flatten is not accessible a couple of statements after the foreach
[ https://issues.apache.org/jira/browse/PIG-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Santhosh Srinivasan updated PIG-442:
------------------------------------
Attachment: PIG-442.patch
Attached patch (PIG-442.patch) fixes the following issue:
1. Use of unambiguous column names with the :: specifier is allowed in statements that follow the foreach flatten statements
2. It rolls back the fix in PIG-436
The following unit test case still fails:
[junit] Running org.apache.pig.test.TestEvalPipeline
[junit] Tests run: 11, Failures: 1, Errors: 0, Time elapsed: 218.337 sec
[junit] Test org.apache.pig.test.TestEvalPipeline FAILED
> 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.