diff --git a/source/libs/function/inc/builtinsimpl.h b/source/libs/function/inc/builtinsimpl.h index c049eedb215591e799fbc21fc1b0d87ec8ce8e16..981b1eec885ea3857f843b75687d2ff2de6e11c4 100644 --- a/source/libs/function/inc/builtinsimpl.h +++ b/source/libs/function/inc/builtinsimpl.h @@ -106,7 +106,9 @@ int32_t getSpreadInfoSize(); bool getSpreadFuncEnv(struct SFunctionNode* pFunc, SFuncExecEnv* pEnv); bool spreadFunctionSetup(SqlFunctionCtx *pCtx, SResultRowEntryInfo* pResultInfo); int32_t spreadFunction(SqlFunctionCtx* pCtx); +int32_t spreadFunctionMerge(SqlFunctionCtx* pCtx); int32_t spreadFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock); +int32_t spreadPartialFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock); bool getElapsedFuncEnv(struct SFunctionNode* pFunc, SFuncExecEnv* pEnv); bool elapsedFunctionSetup(SqlFunctionCtx *pCtx, SResultRowEntryInfo* pResultInfo); diff --git a/source/libs/function/src/builtins.c b/source/libs/function/src/builtins.c index 5154a7bd778d42a0da5686d281ac1e1e7203d8ef..de11209b2952cbfcce5e439d9ee1bb20830ce449 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -1315,7 +1315,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .getEnvFunc = getSpreadFuncEnv, .initFunc = spreadFunctionSetup, .processFunc = spreadFunction, - .finalizeFunc = spreadFinalize + .finalizeFunc = spreadPartialFinalize }, { .name = "_spread_merge", @@ -1325,7 +1325,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .dataRequiredFunc = statisDataRequired, .getEnvFunc = getSpreadFuncEnv, .initFunc = spreadFunctionSetup, - .processFunc = spreadFunction, + .processFunc = spreadFunctionMerge, .finalizeFunc = spreadFinalize }, {