Time zone related BE function (#1598)

Details can be found in time-zone.md document
This commit is contained in:
HangyuanLiu
2019-08-12 20:57:59 +08:00
committed by Mingyu Chen
parent c0253a17fc
commit 69af50aa8c
32 changed files with 550 additions and 361 deletions

View File

@ -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();