Class RemoveRedundantSortBelowLimitWithTies
java.lang.Object
io.trino.sql.planner.iterative.rule.RemoveRedundantSortBelowLimitWithTies
This rule removes SortNode being a source of LimitNode with ties.
LimitNode with ties performs sorting, so the SortNode is redundant.
Transforms:
- LimitNode
count: n
tiesResolvingScheme: (x)
- SortNode: order by (y)
- source
into:
- LimitNode * count: n * tiesResolvingScheme: (x) * - source
-
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 node, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.
-
Constructor Details
-
RemoveRedundantSortBelowLimitWithTies
public RemoveRedundantSortBelowLimitWithTies()
-
-
Method Details