expected = migratePlan(plan);
assertTrue(expected.isEqual(newLogicalPlan));
// with BinStorage, not to insert foreach after load if there is already one
lpt = new LogicalPlanTester(pc);
lpt.buildPlan("a = load 'd.txt' using BinStorage() as (id, v1, v5, v3, v4, v2);");
lpt.buildPlan("b = foreach a generate v5, v4, v2, 10;");
lpt.buildPlan("c = filter b by v2 != NULL;");
lpt.buildPlan("d = foreach c generate v5;");
plan = lpt.buildPlan("store d into 'empty';");
newLogicalPlan = migratePlan(plan);