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

Method GetDateValInterpreted

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

Source from the content-addressed store, hash-verified

539}
540
541DateVal SlotRef::GetDateValInterpreted(
542 ScalarExprEvaluator* eval, const TupleRow* row) const {
543 DCHECK_EQ(type_.type, TYPE_DATE);
544 Tuple* t = row->GetTuple(tuple_idx_);
545 if (t == nullptr || t->IsNull(null_indicator_offset_)) return DateVal::null();
546 const DateValue dv(*reinterpret_cast<int32_t*>(t->GetSlot(slot_offset_)));
547 return dv.ToDateVal();
548}
549
550CollectionVal SlotRef::GetCollectionValInterpreted(
551 ScalarExprEvaluator* eval, const TupleRow* row) const {

Callers

nothing calls this directly

Calls 4

ToDateValMethod · 0.80
GetTupleMethod · 0.45
IsNullMethod · 0.45
GetSlotMethod · 0.45

Tested by

no test coverage detected