Class ReplaceAggregateNestedExpressionWithEval


public final class ReplaceAggregateNestedExpressionWithEval extends OptimizerRules.OptimizerRule<Aggregate>
Replace nested expressions inside a Aggregate with synthetic eval. STATS SUM(a + 1) BY x % 2 becomes EVAL `a + 1` = a + 1, `x % 2` = x % 2 | STATS SUM(`a+1`_ref) BY `x % 2`_ref and INLINESTATS SUM(a + 1) BY x % 2 becomes EVAL `a + 1` = a + 1, `x % 2` = x % 2 | INLINESTATS SUM(`a+1`_ref) BY `x % 2`_ref