Class TransformCorrelatedSingleRowSubqueryToProject
- java.lang.Object
-
- io.prestosql.sql.planner.iterative.rule.TransformCorrelatedSingleRowSubqueryToProject
-
- All Implemented Interfaces:
Rule<CorrelatedJoinNode>
public class TransformCorrelatedSingleRowSubqueryToProject extends Object implements Rule<CorrelatedJoinNode>
This optimizer can rewrite correlated single row subquery to projection in a way described here: From:- CorrelatedJoin (with correlation list: [A, C]) - (input) plan which produces symbols: [A, B, C] - (subquery) - Project (A + C) - single row VALUES()
to:- Project(A, B, C, A + C) - (input) plan which produces symbols: [A, B, C]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.prestosql.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description TransformCorrelatedSingleRowSubqueryToProject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Result
apply(CorrelatedJoinNode parent, 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:Rule
Returns a pattern to which plan nodes this rule applies.- Specified by:
getPattern
in interfaceRule<CorrelatedJoinNode>
-
apply
public Rule.Result apply(CorrelatedJoinNode parent, Captures captures, Rule.Context context)
- Specified by:
apply
in interfaceRule<CorrelatedJoinNode>
-
-