Class PruneEmptyAggregates
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.PruneEmptyAggregates
STATS with no aggregates and no groupings can be replaced with a single, empty row.
This can happen due to expression pruning at optimization time, after all them are dropped,
eg.
STATS a = count(*) by b | drop a, b
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule
apply
-
Constructor Details
-
PruneEmptyAggregates
public PruneEmptyAggregates()
-
-
Method Details
-
rule
- Specified by:
rulein classOptimizerRules.OptimizerRule<Aggregate>
-