Description
Script with following pattern
a = load 'file:///tmp/input' as (x:int, y:chararray); b = load 'file:///tmp/input1' as (y:chararray, x:int); c = union onschema a, b;" + split c into d if x <= 5, e if x <= 10, f if x >10, g if y == '6'; h = union onschema d, e, f, g; store h into 'output';
fails with the below exception
Error: Failure while running task:org.apache.pig.backend.executionengine.ExecException: ERROR 0: POStoreTez only accepts MROutput. key = scope-57, outputs = {scope-45=org.apache.tez.mapreduce.output.MROutput@154c3ee2, scope-46=org.apache.tez.mapreduce.output.MROutput@1e986ab0, scope-44=org.apache.tez.mapreduce.output.MROutput@360aaa8a, scope-47=org.apache.tez.mapreduce.output.MROutput@75a0d6b1} at org.apache.pig.backend.hadoop.executionengine.tez.plan.operator.POStoreTez.attachOutputs(POStoreTez.java:95) at org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor.initializeOutputs(PigProcessor.java:372) at org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor.run(PigProcessor.java:230)
Attachments
Attachments
Issue Links
- incorporates
-
PIG-5082 Tez UnionOptimizer creates vertex group with one member
- Closed