MCPcopy Create free account
hub / github.com/apache/arrow / IsNullLiteral

Method IsNullLiteral

cpp/src/arrow/compute/expression.cc:324–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324bool Expression::IsNullLiteral() const {
325 if (auto lit = literal()) {
326 if (lit->null_count() == lit->length()) {
327 return true;
328 }
329 }
330
331 return false;
332}
333
334namespace {
335std::optional<compute::NullHandling::type> GetNullHandling(const Expression::Call& call) {

Callers 2

FoldConstantsFunction · 0.80
PriorityFunction · 0.80

Calls 3

literalFunction · 0.70
null_countMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected