NullPointerException when running my Pig script with streaming
--------------------------------------------------------------
Key: PIG-173
URL: https://issues.apache.org/jira/browse/PIG-173
Project: Pig
Issue Type: Bug
Reporter: Xu Zhang
Assignee: Arun C Murthy
Priority: Critical
Execute the following Pig statements in Grunt or with a Pig script, and a
NullPointerException is generated.
{noformat}
grunt> A = load '/user/pig/tests/data/singlefile/studentcolon10k' using
PigStorage(':');
grunt> B = foreach A generate $2, $1, $0;
grunt> define X `awk 'BEGIN {FS = ","; OFS = "\t"} {print $3, $2, $1}'` input
(stdin using
PigStorage(','));
grunt> C = stream B through X;
grunt> D = foreach C generate $0, $1;
2008-03-28 14:17:20,978 [main] ERROR org.apache.pig.tools.grunt.GruntParser -
java.lang.NullPointerException
at org.apache.pig.impl.logicalLayer.LOEval.outputSchema(LOEval.java:69)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.ForEachClause(QueryParser.java:1508)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:691)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:492)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:342)
at
org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:47)
at org.apache.pig.PigServer.registerQuery(PigServer.java:261)
at
org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:462)
at
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
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:253)
2008-03-28 14:17:20,979 [main] ERROR org.apache.pig.tools.grunt.GruntParser -
java.lang.NullPointerException
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.