Support prepare/close in UDF (#1985)

The prepare/close step of scalar function is already supported in execution framework, We only need to do is that support it in syntax and meta in frontend.

In addition, 'Hive' binary type of scalar function NOT supports prepare/close step, we need to make it supports.
This commit is contained in:
xy720
2019-10-16 07:19:20 +08:00
committed by ZHAO Chun
parent ee5b79ac2b
commit 63fa260d3f
7 changed files with 98 additions and 46 deletions

View File

@ -26,4 +26,9 @@ IntVal AddUdf(FunctionContext* context, const IntVal& arg1, const IntVal& arg2)
return {arg1.val + arg2.val};
}
/// --- Prepare / Close Functions ---
/// ---------------------------------
void AddUdfPrepare(FunctionContext* context, FunctionContext::FunctionStateScope scope) {}
void AddUdfClose(FunctionContext* context, FunctionContext::FunctionStateScope scope) {}
}