[
https://issues.apache.org/jira/browse/PIG-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shravan Matthur Narayanamurthy updated PIG-375:
-----------------------------------------------
Status: Patch Available (was: Open)
Wrote a walker(SplitIntroducer) which identifies implicit split condition and
introduces a split into the plan. This is done while compilation of logicalplan
in PigServer.compileLp before type checking. The split has true conditions in
the form of constant expressions with true as the value.
Changes:
Added SplitIntroducer. Modified PigServer's compileLp to incorporate the call
to splitintroducer. Added a test case to check the same.
Also included in this is the patch for pig-369. Details of the included patch
are in the comments of Pig-369.
I have caneled the patch submitted for pig-369. Please verify and close pig-369
along with this.
> Exception with implicit split
> -----------------------------
>
> Key: PIG-375
> URL: https://issues.apache.org/jira/browse/PIG-375
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Olga Natkovich
> Assignee: Shravan Matthur Narayanamurthy
> Priority: Critical
> Fix For: types_branch
>
>
> Script:
> grunt> A = load 'foo';
> grunt> B = foreach A generate $0;
> grunt> C = foreach A generate $1;
> grunt> D = Union B, C;
> grunt> dump D;
> Error:
> 08/08/12 11:36:57 ERROR plan.OperatorPlan: Attempt to give operator of type
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLoad
> multiple outputs. This operator does not support multiple outputs.
> 08/08/12 11:36:57 ERROR physicalLayer.LogToPhyTranslationVisitor: Invalid
> physical operators in the physical planAttempt to give operator of type
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLoad
> multiple outputs. This operator does not support multiple outputs.
> 08/08/12 11:36:59 ERROR grunt.GruntParser: java.io.IOException: Unable to
> open iterator for alias: E [null]
> at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:268)
> at org.apache.pig.PigServer.execute(PigServer.java:519)
> 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.parseContOnError(GruntParser.java:92)
> at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
> at org.apache.pig.Main.main(Main.java:278)
> Caused by: org.apache.pig.backend.executionengine.ExecException
> ... 8 more
> Caused by:
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobCreationException
> at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:162)
> at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:107)
> at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:68)
> at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:258)
> ... 7 more
> Caused by: java.lang.ClassCastException:
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLimit
> at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJobConf(JobControlCompiler.java:203)
> at
> org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:156)
> ... 10 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.