agg优化 numeric相关sum\avg等优化

This commit is contained in:
cailei19
2023-03-01 17:47:30 +08:00
parent 1f6090e30e
commit 4180f34b3d
14 changed files with 963 additions and 6 deletions

View File

@ -2889,6 +2889,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)