Class SimplifyFilterPredicate
java.lang.Object
io.trino.sql.planner.iterative.rule.SimplifyFilterPredicate
- All Implemented Interfaces:
Rule<FilterNode>
Simplify conditional expressions in filter predicate.
Replaces conditional expression with an expression evaluating to TRUE if and only if the original expression evaluates to TRUE. The rewritten expression might not be equivalent to the original expression.
-
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(FilterNode node, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.
-
Constructor Details
-
SimplifyFilterPredicate
-
-
Method Details
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<FilterNode>
-
apply
- Specified by:
applyin interfaceRule<FilterNode>
-