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

Method FromTimestamp

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

Source from the content-addressed store, hash-verified

174}
175
176StringVal TimestampFunctions::FromTimestamp(FunctionContext* context,
177 const TimestampVal& date, const StringVal& fmt) {
178 if (date.is_null) return StringVal::null();
179 const TimestampValue& tv = TimestampValue::FromTimestampVal(date);
180 if (!tv.HasDate()) return StringVal::null();
181 return StringValFromTimestamp(context, tv, fmt);
182}
183
184BigIntVal TimestampFunctions::UnixFromString(FunctionContext* context,
185 const StringVal& sv) {

Callers

nothing calls this directly

Calls 1

HasDateMethod · 0.80

Tested by

no test coverage detected