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

Method GetIntValInterpreted

be/src/exprs/valid-tuple-id.cc:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51IntVal ValidTupleIdExpr::GetIntValInterpreted(
52 ScalarExprEvaluator* eval, const TupleRow* row) const {
53 // Validate that exactly one tuple is non-NULL.
54 int num_tuples = tuple_ids_.size();
55 DCHECK_EQ(1, ComputeNonNullCount(row, num_tuples));
56 for (int i = 0; i < num_tuples; ++i) {
57 if (row->GetTuple(i) != nullptr) return IntVal(tuple_ids_[i]);
58 }
59 return IntVal::null();
60}
61
62// Sample IR output (with 3 tuple ids in the vector):
63//

Callers

nothing calls this directly

Calls 3

IntValClass · 0.85
sizeMethod · 0.45
GetTupleMethod · 0.45

Tested by

no test coverage detected