You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/06/04 23:13:45 UTC

[jira] Resolved: (PIG-251) Incorrect message trying to store non-existent alias

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

Olga Natkovich resolved PIG-251.
--------------------------------

    Resolution: Fixed

Looks like this was an issues with earlier versions. With the latest code, I get the following error:

grunt> store foo into 'bar';
08/06/04 14:11:56 ERROR grunt.GruntParser: java.io.IOException: Undefined alias: foo used in STORE
        at org.apache.pig.PigServer.registerQuery(PigServer.java:278)
        at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:457)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:233)
        at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:73)
        at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:54)
        at org.apache.pig.Main.main(Main.java:270)
Caused by: org.apache.pig.impl.logicalLayer.parser.ParseException: Undefined alias: foo used in STORE
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.StoreClause(QueryParser.java:3554)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:729)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:512)
        at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:382)
        at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:47)
        at org.apache.pig.PigServer.registerQuery(PigServer.java:275)
        ... 5 more

> Incorrect message trying to store non-existent alias
> ----------------------------------------------------
>
>                 Key: PIG-251
>                 URL: https://issues.apache.org/jira/browse/PIG-251
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Olga Natkovich
>
> the following script:  
> store foo into 'test';
> produces the error stack:
> java.lang.NullPointerException
>         at org.apache.pig.tools.grunt.Utils.getPermissionException(Utils.java:24)
>         at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:77)
>         at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:54)
>         at org.apache.pig.Main.main(Main.java:253)

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