agg优化 numeric相关sum\avg等优化
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user