Class SimplifyComplementaryLogicalTerms

java.lang.Object
io.trino.sql.ir.optimizer.rule.SimplifyComplementaryLogicalTerms
All Implemented Interfaces:
IrOptimizerRule

public class SimplifyComplementaryLogicalTerms extends Object implements IrOptimizerRule
Simplifies logical expression containing terms and negations of those terms. E.g.,
  • And(x, $not(x), ...) -> And(x, $is_null(x), ...)
  • Or(x, $not(x), ...) -> Or(x, $not($is_null(x)), ...)