[Enchancement](Agg State) storage function name and result is nullable in agg state type (#20298)

storage function name and result is nullable in agg state type
This commit is contained in:
Pxl
2023-06-04 22:44:48 +08:00
committed by GitHub
parent e6f395c9da
commit 8e39f0cf6b
25 changed files with 386 additions and 154 deletions

View File

@ -96,9 +96,7 @@ Status VectorizedFnCall::prepare(RuntimeState* state, const RowDescriptor& desc,
}
_function = FunctionAggState::create(
argument_types, _data_type,
AggregateFunctionSimpleFactory::instance().get(
remove_suffix(_fn.name.function_name, AGG_STATE_SUFFIX), argument_types,
_data_type->is_nullable()));
assert_cast<const DataTypeAggState*>(_data_type.get())->get_nested_function());
} else {
return Status::InternalError("Function {} is not endwith '_state'", _fn.signature);
}