Class OptimizeDuplicateInsensitiveJoins
java.lang.Object
io.trino.sql.planner.iterative.rule.OptimizeDuplicateInsensitiveJoins
- All Implemented Interfaces:
Rule<AggregationNode>
For empty aggregations duplicate input rows can be skipped.
This rule takes advantage of this fact and sets
JoinNode.withMaySkipOutputDuplicates() for joins below
such aggregation.-
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 aggregation, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.boolean
-
Constructor Details
-
OptimizeDuplicateInsensitiveJoins
public OptimizeDuplicateInsensitiveJoins()
-
-
Method Details
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<AggregationNode>
-
isEnabled
- Specified by:
isEnabledin interfaceRule<AggregationNode>
-
apply
- Specified by:
applyin interfaceRule<AggregationNode>
-