lpt.buildPlan("B = LOAD 'data2' using "+ DummyIndexableLoader.class.getName() +"() as (id, name, grade);");
LogicalPlan lp = lpt.buildPlan("C = join A by id left, B by id using 'merge';");
assertEquals(LOJoin.JOINTYPE.MERGE, ((LOJoin)lp.getLeaves().get(0)).getJoinType());
PigContext pc = new PigContext(ExecType.MAPREDUCE,cluster.getProperties());
pc.connect();
PhysicalPlan phyP = Util.buildPhysicalPlan(lp, pc);
PhysicalOperator phyOp = phyP.getLeaves().get(0);
assertTrue(phyOp instanceof POForEach);
assertEquals(1,phyOp.getInputs().size());
assertTrue(phyOp.getInputs().get(0) instanceof POMergeCogroup);