Class PruneCorrelatedJoinCorrelation
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PruneCorrelatedJoinCorrelation
-
- All Implemented Interfaces:
Rule<CorrelatedJoinNode>
public class PruneCorrelatedJoinCorrelation extends Object implements Rule<CorrelatedJoinNode>
This rule updates CorrelatedJoinNode's correlation list. A symbol can be removed from the correlation list if it is not referenced by the subquery node. Note: This rule does not restrict CorrelatedJoinNode's children outputs. It requires additional information about context (symbols required by the outer plan) and is done in PruneCorrelatedJoinColumns rule.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PruneCorrelatedJoinCorrelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(CorrelatedJoinNode correlatedJoinNode, Captures captures, Rule.Context context)Pattern<CorrelatedJoinNode>getPattern()Returns a pattern to which plan nodes this rule applies.
-
-
-
Method Detail
-
getPattern
public Pattern<CorrelatedJoinNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<CorrelatedJoinNode>
-
apply
public Rule.Result apply(CorrelatedJoinNode correlatedJoinNode, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<CorrelatedJoinNode>
-
-