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 INLINE STATS SUM(a + 1) BY x % 2 becomes EVAL `a + 1` = a + 1, `x % 2` = x % 2 | INLINE STATS SUM(`a+1`_ref) BY `x % 2`_ref
  • Constructor Details

    • ReplaceAggregateNestedExpressionWithEval

      public ReplaceAggregateNestedExpressionWithEval()
    • ReplaceAggregateNestedExpressionWithEval

      public ReplaceAggregateNestedExpressionWithEval(boolean locallyUniqueNames)
      Parameters:
      locallyUniqueNames - when true, the synthetic eval names generated for extracted nested expressions are made globally unique instead of being derived deterministically from the extracted expression.
  • Method Details