[ 
https://issues.apache.org/jira/browse/PIG-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Santhosh Srinivasan updated PIG-400:
------------------------------------

    Patch Info: [Patch Available]

> flatten causes schema naming problems
> -------------------------------------
>
>                 Key: PIG-400
>                 URL: https://issues.apache.org/jira/browse/PIG-400
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Santhosh Srinivasan
>             Fix For: types_branch
>
>         Attachments: PIG_400.patch
>
>
> Script:
> A = load 'data' as (name: chararray, age: chararray, gpa: float);
> B = group A by (name, age);
> C = foreach B generate flatten(group) as res, COUNT(A);
> D = foreach C generate res;
> dump D;
> Error:
> java.io.IOException: Invalid alias: res in {res::name: chararray,res::age: 
> chararray,long}
>         at org.apache.pig.PigServer.registerQuery(PigServer.java:255)
>         at 
> org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:422)
>         at 
> org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:241)
>         at 
> org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:82)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>         at org.apache.pig.Main.main(Main.java:302)
> Caused by: org.apache.pig.impl.logicalLayer.parser.ParseException: Invalid 
> alias: res in {res::name: chararray,res::age: chararray,long}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to