Class PruneCountAggregationOverScalar
java.lang.Object
io.trino.sql.planner.iterative.rule.PruneCountAggregationOverScalar
- All Implemented Interfaces:
Rule<AggregationNode>
A count over a subquery can be reduced to a VALUES(1) provided
the subquery is a scalar
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AggregationNode parent, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.
-
Constructor Details
-
PruneCountAggregationOverScalar
-
-
Method Details
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<AggregationNode>
-
apply
- Specified by:
applyin interfaceRule<AggregationNode>
-