NullPointerException if storing a non-existing alias
----------------------------------------------------

                 Key: PIG-193
                 URL: https://issues.apache.org/jira/browse/PIG-193
             Project: Pig
          Issue Type: Bug
            Reporter: Xu Zhang


If a non-existing alias (such as E in the following example script) is stored, 
a NullPointerException is generated.

{code}
A = load '../../singlefile/studenttab10k' as (name, age, gpa);
store E into 'results_n_30';
{code}

{noformat}
2008-04-04 22:41:12,686 [main] ERROR org.apache.pig.tools.grunt.Grunt - 
java.lang.NullPointerException
        at 
org.apache.pig.impl.logicalLayer.parser.QueryParser.StoreClause(QueryParser.java:3523)
        at 
org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:706)
        at 
org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:489)
        at 
org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:359)
        at 
org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:47)
        at org.apache.pig.PigServer.registerQuery(PigServer.java:262)
        at 
org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
        at 
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
        at 
org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
        at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
        at org.apache.pig.Main.main(Main.java:265)
{noformat}

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