MCPcopy Create free account
hub / github.com/apache/impala / GetBooleanValInterpreted

Method GetBooleanValInterpreted

be/src/exprs/tuple-is-null-predicate.cc:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace impala {
31
32BooleanVal TupleIsNullPredicate::GetBooleanValInterpreted(
33 ScalarExprEvaluator* evaluator, const TupleRow* row) const {
34 int count = 0;
35 for (int i = 0; i < tuple_idxs_.size(); ++i) {
36 count += row->GetTuple(tuple_idxs_[i]) == NULL;
37 }
38 // Return true only if all originally specified tuples are NULL. Return false if any
39 // tuple is non-nullable.
40 return BooleanVal(count == tuple_ids_.size());
41}
42
43TupleIsNullPredicate::TupleIsNullPredicate(const TExprNode& node)
44 : Predicate(node),

Callers

nothing calls this directly

Calls 3

BooleanValClass · 0.85
sizeMethod · 0.45
GetTupleMethod · 0.45

Tested by

no test coverage detected