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

Method GetTimestampValInterpreted

be/src/exprs/slot-ref.cc:509–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509TimestampVal 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
520DecimalVal SlotRef::GetDecimalValInterpreted(
521 ScalarExprEvaluator* eval, const TupleRow* row) const {

Callers

nothing calls this directly

Calls 4

ToTimestampValMethod · 0.80
GetTupleMethod · 0.45
IsNullMethod · 0.45
GetSlotMethod · 0.45

Tested by

no test coverage detected