Class PruneRedundantAggregateGroupings
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.PruneRedundantAggregateGroupings
- All Implemented Interfaces:
OptimizerRules.LocalAware<Aggregate>
public final class PruneRedundantAggregateGroupings
extends OptimizerRules.OptimizerRule<Aggregate>
implements OptimizerRules.LocalAware<Aggregate>
Removes
STATS BY keys that do not add grouping cardinality and rebuilds their output above the aggregation.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule
apply
-
Constructor Details
-
PruneRedundantAggregateGroupings
public PruneRedundantAggregateGroupings()
-
-
Method Details
-
rule
- Specified by:
rulein classOptimizerRules.OptimizerRule<Aggregate>
-
local
Description copied from interface:OptimizerRules.LocalAwarethe local version of the rule.nullif the rule should not be applied locally.- Specified by:
localin interfaceOptimizerRules.LocalAware<Aggregate>
-