ReduceOperator globalRed = ReduceOperator.builder(new IdentityReduce(), IntValue.class, 0).build();
globalRed.addInput(redA);
globalRed.addInput(redB);
FileDataSink sink = new FileDataSink(new DummyOutputFormat(), OUT_FILE, globalRed);
// return the plan
Plan plan = new Plan(sink, "Union Property Propagation");
OptimizedPlan oPlan = compileNoStats(plan);