// create union operator
ArrayList<LogicalRelationalOperator> inputList = new ArrayList<LogicalRelationalOperator>() ;
inputList.add(load1) ;
inputList.add(load2) ;
LOUnion union = new LOUnion(plan, false) ;
// wiring
plan.add(load1) ;
plan.add(load2) ;
plan.add(union) ;
plan.connect(load1, union);
plan.connect(load2, union);
// validate
CompilationMessageCollector collector = new CompilationMessageCollector() ;
TypeCheckingRelVisitor typeChecker = new TypeCheckingRelVisitor(plan, collector);
typeChecker.visit();
printMessageCollector(collector) ;
// check end result schema
Schema outputSchema = org.apache.pig.newplan.logical.Util.translateSchema(union.getSchema()) ;
Schema expectedSchema = null ;
{
List<FieldSchema> fsListExpected = new ArrayList<FieldSchema>() ;
fsListExpected.add(new FieldSchema("field1a", DataType.DOUBLE)) ;