Class MergeLimitOverProjectWithSort
java.lang.Object
io.trino.sql.planner.iterative.rule.MergeLimitOverProjectWithSort
Transforms:
- Limit (limit = x)
- Project (identity, narrowing)
- Sort (order by a, b)
Into:
- Project (identity, narrowing)
- TopN (limit = x, order by a, b)
Applies to LimitNode without ties only.-
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(LimitNode parent, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.
-
Constructor Details
-
MergeLimitOverProjectWithSort
public MergeLimitOverProjectWithSort()
-
-
Method Details