Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add extra CmpExpr simplification rules to simplifyNotExpr
This change adds simplification rules to `simplifyNotExpr`: ``` NotExpr{ComparisonExpr{NotRegMatch,a,b}} -> ComparisonExpr{RegMatch,a,b} NotExpr{ComparisonExpr{NotRegIMatch,a,b}} -> ComparisonExpr{RegIMatch,a,b} NotExpr{ComparisonExpr{IsDistinctFrom,a,b}} -> ComparisonExpr{IsNotDistinctFrom,a,b} NotExpr{ComparisonExpr{IsNotDistinctFrom,a,b}} -> ComparisonExpr{IsDistinctFrom,a,b} NotExpr{ComparisonExpr{Is,a,b}} -> ComparisonExpr{IsNot,a,b} NotExpr{ComparisonExpr{IsNota,b}} -> ComparisonExpr{Is,a,b} ```
- Loading branch information