Time zone related BE function (#1598)
Details can be found in time-zone.md document
This commit is contained in:
@ -34,6 +34,15 @@ FunctionUtils::FunctionUtils() {
|
||||
_fn_ctx = FunctionContextImpl::create_context(
|
||||
_state, _memory_pool, return_type, arg_types, 0, false);
|
||||
}
|
||||
FunctionUtils::FunctionUtils(RuntimeState* state) {
|
||||
_state = state;
|
||||
doris_udf::FunctionContext::TypeDesc return_type;
|
||||
std::vector<doris_udf::FunctionContext::TypeDesc> arg_types;
|
||||
_mem_tracker = new MemTracker();
|
||||
_memory_pool = new MemPool(_mem_tracker);
|
||||
_fn_ctx = FunctionContextImpl::create_context(
|
||||
_state, _memory_pool, return_type, arg_types, 0, false);
|
||||
}
|
||||
|
||||
FunctionUtils::~FunctionUtils() {
|
||||
_fn_ctx->impl()->close();
|
||||
|
||||
Reference in New Issue
Block a user