private void optimize(TezOperPlan tezPlan, PigContext pc) throws VisitorException {
Configuration conf = ConfigurationUtil.toConfiguration(pc.getProperties());
boolean aggregateWarning = conf.getBoolean("aggregate.warning", false);
NoopFilterRemover filter = new NoopFilterRemover(tezPlan);
filter.visit();
// Run CombinerOptimizer on Tez plan
boolean nocombiner = conf.getBoolean(PigConfiguration.PROP_NO_COMBINER, false);
if (!pc.inIllustrator && !nocombiner) {
boolean doMapAgg = Boolean.parseBoolean(pc.getProperties().getProperty(