LogicalPlan lp = (LogicalPlan) compileLp.invoke(myPig, new Object[] { null });
LOPrinter lpr = new LOPrinter(System.err, lp);
lpr.visit();
PhysicalPlan pp = buildPhysicalPlan(lp);
SortInfo si0 = ((POStore)(pp.getLeaves().get(0))).getSortInfo();
SortInfo si1 = ((POStore)(pp.getLeaves().get(1))).getSortInfo();
SortInfo expected = getSortInfo(
Arrays.asList(new String[] {"i", "d"}),
Arrays.asList(new Integer[] {0, 2}),
Arrays.asList(new SortColInfo.Order[] {
SortColInfo.Order.ASCENDING,
SortColInfo.Order.DESCENDING}));