!2987 对agg numeric类型sum、agg等函数优化

Merge pull request !2987 from cailei/numeric_0227
This commit is contained in:
opengauss-bot
2023-03-02 06:38:21 +00:00
committed by Gitee
13 changed files with 962 additions and 5 deletions

View File

@ -2927,6 +2927,13 @@ int AggCheckCallContext(FunctionCallInfo fcinfo, MemoryContext* aggcontext)
*aggcontext = ((WindowAggState*)fcinfo->context)->aggcontext;
return AGG_CONTEXT_WINDOW;
}
#ifndef ENABLE_MULTIPLE_NODES
if (fcinfo->context && IsA(fcinfo->context, VecWindowAggState)) {
if (aggcontext != NULL)
*aggcontext = ((VecWindowAggState*)fcinfo->context)->aggcontext;
return AGG_CONTEXT_WINDOW;
}
#endif
/* this is just to prevent "uninitialized variable" warnings */
if (aggcontext != NULL)