planTester.buildPlan("A = LOAD 'input1' AS (a0, a1, a2);");
planTester.buildPlan("B = LOAD 'input2' AS (b0, b1, b2);");
planTester.buildPlan("C = cogroup A by a0, B by b0;");
planTester.buildPlan("D = foreach C { E = limit A 10; F = E.a1; G = DISTINCT F; generate group, COUNT(G);};");
LogicalPlan lp = planTester.buildPlan("store D into '/tmp';");
PhysicalPlan pp = Util.buildPhysicalPlan(lp, pc);
MROperPlan mrPlan = Util.buildMRPlan(pp, pc);
SecondaryKeyOptimizer so = new SecondaryKeyOptimizer(mrPlan);
so.visit();