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/08/12 20:33:44 UTC
[jira] Commented: (PIG-373) unconnected load causes exception
[ https://issues.apache.org/jira/browse/PIG-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621919#action_12621919 ]
Olga Natkovich commented on PIG-373:
------------------------------------
Stack:
And the error is:
java.io.IOException: Unable to open iterator for alias: a [Unable to insert type casts into plan]
at org.apache.pig.impl.logicalLayer.optimizer.TypeCastInserter.transform(TypeCastInserter.java:144)
at org.apache.pig.impl.plan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:65)
at org.apache.pig.PigServer.compileLp(PigServer.java:583)
at org.apache.pig.PigServer.execute(PigServer.java:514)
at org.apache.pig.PigServer.openIterator(PigServer.java:307)
at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:258)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:175)
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.plan.optimizer.OptimizerException: Unable to insert type casts into plan
... 10 more
Caused by: java.lang.NullPointerException
at org.apache.pig.impl.logicalLayer.optimizer.LogicalTransformer.insertAfter(LogicalTransformer.java:203)
at org.apache.pig.impl.logicalLayer.optimizer.TypeCastInserter.transform(TypeCastInserter.java:139)
... 9 more
> unconnected load causes exception
> ---------------------------------
>
> Key: PIG-373
> URL: https://issues.apache.org/jira/browse/PIG-373
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Olga Natkovich
> Fix For: types_branch
>
>
> Load expects to be connected to another operator and when it is not,an exception is raised. Two scripts that cause this behavior
> grunt> B = load 'foo' USING PigStorage() AS (s:chararray);
> grunt> dump B;
> grunt> B = load 'foo' USING PigStorage() AS (s:chararray);
> grunt> dump B;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.