| 30 | namespace impala { |
| 31 | |
| 32 | BooleanVal 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 | |
| 43 | TupleIsNullPredicate::TupleIsNullPredicate(const TExprNode& node) |
| 44 | : Predicate(node), |
nothing calls this directly
no test coverage detected