Package io.trino.cost

Class FilterProjectAggregationStatsRule

java.lang.Object
io.trino.cost.SimpleStatsRule<FilterNode>
io.trino.cost.FilterProjectAggregationStatsRule
All Implemented Interfaces:
ComposableStatsCalculator.Rule<FilterNode>

public class FilterProjectAggregationStatsRule extends SimpleStatsRule<FilterNode>
AggregationStatsRule does not have sufficient information to provide accurate estimates on aggregated symbols. This rule finds unestimated filters on top of aggregations whose output row count was estimated and returns estimated row count of (UNKNOWN_FILTER_COEFFICIENT * aggregation output row count) for the filter.