Class DeduplicateAggs
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.ReplaceAggregateAggExpressionWithEval
org.elasticsearch.xpack.esql.optimizer.rules.logical.DeduplicateAggs
- All Implemented Interfaces:
OptimizerRules.CoordinatorOnly,OptimizerRules.LocalAware<LogicalPlan>
public final class DeduplicateAggs
extends ReplaceAggregateAggExpressionWithEval
implements OptimizerRules.CoordinatorOnly
This rule handles duplicate aggregate functions to avoid duplicate compute
stats a = min(x), b = min(x), c = count(*), d = count() by g
becomes
stats a = min(x), c = count(*) by g | eval b = a, d = c | keep a, b, c, d, g
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.ReplaceAggregateAggExpressionWithEval
ruleMethods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule
applyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.CoordinatorOnly
local
-
Constructor Details
-
DeduplicateAggs
public DeduplicateAggs()
-