| 84 | } |
| 85 | |
| 86 | static std::unique_ptr<ColumnPredicate> tryConvertToIsNull(const Expression& column, |
| 87 | const Expression& predicate) { |
| 88 | // we only convert simple predicates |
| 89 | if (isColumnOrCastedColumnRef(*predicate.getChild(0)) && column == *predicate.getChild(0)) { |
| 90 | return std::make_unique<ColumnNullPredicate>(column.toString(), ExpressionType::IS_NULL); |
| 91 | } |
| 92 | return nullptr; |
| 93 | } |
| 94 | |
| 95 | static std::unique_ptr<ColumnPredicate> tryConvertToIsNotNull(const Expression& column, |
| 96 | const Expression& predicate) { |
no test coverage detected