MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / tryConvertToIsNull

Function tryConvertToIsNull

src/storage/predicate/column_predicate.cpp:86–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static 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
95static std::unique_ptr<ColumnPredicate> tryConvertToIsNotNull(const Expression& column,
96 const Expression& predicate) {

Callers 1

tryConvertMethod · 0.85

Calls 3

getChildMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected