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

Function DateToString

be/src/udf/udf-test.cc:152–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152StringVal DateToString(FunctionContext* context, const DateVal& date_val) {
153 DateValue date_value = DateValue::FromDateVal(date_val);
154 const string s = date_value.ToString();
155 StringVal result(context, s.size());
156 memcpy(result.ptr, s.data(), result.len);
157 return result;
158}
159
160void ValidateSharedStatePrepare(
161 FunctionContext* context, FunctionContext::FunctionStateScope scope) {

Callers

nothing calls this directly

Calls 3

ToStringMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected