Class RemoveRedundantExists
java.lang.Object
io.trino.sql.planner.iterative.rule.RemoveRedundantExists
Given:
- Apply [X.*, e = EXISTS (true)] - X - S with cardinality >= 1
Produces:
- Project [X.*, e = true] - X
Given:
- Apply [X.*, e = EXISTS (true)] - X - S with cardinality = 0
Produces:
- Project [X.*, e = false] - X
-
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(ApplyNode node, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.
-
Constructor Details
-
RemoveRedundantExists
public RemoveRedundantExists()
-
-
Method Details