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

Method FromUnix

be/src/exprs/timestamp-functions-ir.cc:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76template <class TIME>
77StringVal TimestampFunctions::FromUnix(FunctionContext* context, const TIME& intp) {
78 if (intp.is_null) return StringVal::null();
79 const TimestampValue tv = TimestampValue::FromUnixTime(intp.val,
80 context->impl()->state()->time_zone_for_unix_time_conversions());
81 return tv.ToStringVal(context);
82}
83
84template <class TIME>
85StringVal TimestampFunctions::FromUnix(FunctionContext* context, const TIME& intp,

Callers

nothing calls this directly

Calls 5

ReportBadFormatFunction · 0.85
implMethod · 0.80
stateMethod · 0.45
ToStringValMethod · 0.45

Tested by

no test coverage detected