Dear Mr/Ms,
Hi!
When I develop a UDA with C++ based on Impala, I have a problem is that
I can't get the result throw the finalize_fn function. I get the null value
every time.
I define funtions as follow:
void init_func(FunctionContext* context, StringVal* result)
{
...
}
void update_func(FunctionContext* context, const StringVal& input, StringVal*
result)
{
...
}
void merge_func(FunctionContext* context, const StringVal& input, StringVal*
result)
{
...
}
StringVal finalize_func(FunctionContext* context, const StringVal& val)
{
return val;
}
but I get the null value every time.
That's why?