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

Function tryConvertToIsNotNull

src/storage/predicate/column_predicate.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static std::unique_ptr<ColumnPredicate> tryConvertToIsNotNull(const Expression& column,
96 const Expression& predicate) {
97 if (isColumnOrCastedColumnRef(*predicate.getChild(0)) && column == *predicate.getChild(0)) {
98 return std::make_unique<ColumnNullPredicate>(column.toString(),
99 ExpressionType::IS_NOT_NULL);
100 }
101 return nullptr;
102}
103
104std::unique_ptr<ColumnPredicate> ColumnPredicateUtil::tryConvert(const Expression& property,
105 const Expression& predicate) {

Callers 1

tryConvertMethod · 0.85

Calls 3

getChildMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected