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

Method ToDateVal

be/src/runtime/date-value.h:168–171  ·  view source on GitHub ↗

Returns a DateVal representation in the output variable. Returns null if the DateValue instance doesn't have a valid date.

Source from the content-addressed store, hash-verified

166 /// Returns a DateVal representation in the output variable.
167 /// Returns null if the DateValue instance doesn't have a valid date.
168 impala_udf::DateVal ToDateVal() const {
169 if (!IsValid()) return impala_udf::DateVal::null();
170 return impala_udf::DateVal(days_since_epoch_);
171 }
172
173 /// Returns the underlying storage. There is only one representation for any DateValue
174 /// (including the invalid DateValue) and the storage is directly comparable.

Callers 15

NextDayMethod · 0.80
LastDayMethod · 0.80
CurrentDateMethod · 0.80
AddSubYearsMethod · 0.80
AddSubMonthsMethod · 0.80
AddSubDaysMethod · 0.80
AddSubWeeksMethod · 0.80
MaskImplFunction · 0.80
GetDateValInterpretedMethod · 0.80
CastToDateValMethod · 0.80
TestDateMethod · 0.80
GetDateValInterpretedMethod · 0.80

Calls 1

DateValClass · 0.85

Tested by 2

TestDateMethod · 0.64
TESTFunction · 0.64