Class PruneCountAggregationOverScalar

java.lang.Object
io.trino.sql.planner.iterative.rule.PruneCountAggregationOverScalar
All Implemented Interfaces:
Rule<AggregationNode>

public class PruneCountAggregationOverScalar extends Object implements Rule<AggregationNode>
A count over a subquery can be reduced to a VALUES(1) provided the subquery is a scalar