input.setInputKey(prevOp.getOperatorKey().toString());
curTezOp.plan.addAsLeaf(input);
if (!pigContext.inIllustrator) {
POLimit limitCopy = new POLimit(OperatorKey.genOpKey(scope));
limitCopy.copyAliasFrom(op);
limitCopy.setLimit(op.getLimit());
limitCopy.setLimitPlan(op.getLimitPlan());
curTezOp.plan.addAsLeaf(limitCopy);
} else {
curTezOp.plan.addAsLeaf(op);