hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Srinivasan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-400) flatten causes schema naming problems
Date Wed, 03 Dec 2008 19:41:44 GMT

     [ 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.


Mime
View raw message