Class PushTopNThroughOuterJoin
java.lang.Object
io.trino.sql.planner.iterative.rule.PushTopNThroughOuterJoin
Transforms:
- TopN (partial)
- Join (left, right)
- left source
- right source
Into:
- Join
- TopN (present if Join is left, not already limited, and orderBy symbols come from left source)
- left source
- TopN (present if Join is right, not already limited, and orderBy symbols come from right source)
- right source
TODO: this Rule violates the expectation that Rule transformations must preserve the semantics of the expression subtree. It works only because it's a PARTIAL TopN, so there will be a FINAL TopN that "fixes" it.
-
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(TopNNode parent, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.
-
Constructor Details
-
PushTopNThroughOuterJoin
public PushTopNThroughOuterJoin()
-
-
Method Details