!2987 对agg numeric类型sum、agg等函数优化
Merge pull request !2987 from cailei/numeric_0227
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user