Class ReplaceAggregateNestedExpressionWithEval
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<Aggregate,LogicalPlan>
org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule<Aggregate>
org.elasticsearch.xpack.esql.optimizer.rules.logical.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-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule
apply
-
Constructor Details
-
ReplaceAggregateNestedExpressionWithEval
public ReplaceAggregateNestedExpressionWithEval()
-
-
Method Details
-
rule
- Specified by:
rulein classOptimizerRules.OptimizerRule<Aggregate>
-