| 507 | } |
| 508 | |
| 509 | TimestampVal SlotRef::GetTimestampValInterpreted( |
| 510 | ScalarExprEvaluator* eval, const TupleRow* row) const { |
| 511 | DCHECK_EQ(type_.type, TYPE_TIMESTAMP); |
| 512 | Tuple* t = row->GetTuple(tuple_idx_); |
| 513 | if (t == NULL || t->IsNull(null_indicator_offset_)) return TimestampVal::null(); |
| 514 | TimestampValue* tv = reinterpret_cast<TimestampValue*>(t->GetSlot(slot_offset_)); |
| 515 | TimestampVal result; |
| 516 | tv->ToTimestampVal(&result); |
| 517 | return result; |
| 518 | } |
| 519 | |
| 520 | DecimalVal SlotRef::GetDecimalValInterpreted( |
| 521 | ScalarExprEvaluator* eval, const TupleRow* row) const { |
nothing calls this directly
no test coverage detected