!4909 修复聚合函数触发转换函数时ignore失效的问题
Merge pull request !4909 from yuchao/master
This commit is contained in:
@ -508,6 +508,7 @@ static void advance_transition_function(
|
|||||||
fcinfo->argnull[0] = pergroupstate->transValueIsNull;
|
fcinfo->argnull[0] = pergroupstate->transValueIsNull;
|
||||||
fcinfo->argTypes[0] = InvalidOid;
|
fcinfo->argTypes[0] = InvalidOid;
|
||||||
fcinfo->isnull = false; /* just in case transfn doesn't set it */
|
fcinfo->isnull = false; /* just in case transfn doesn't set it */
|
||||||
|
fcinfo->can_ignore = aggstate->ss.ps.state->es_plannedstmt->hasIgnore;
|
||||||
|
|
||||||
Node *origin_fcxt = fcinfo->context;
|
Node *origin_fcxt = fcinfo->context;
|
||||||
if (IS_PGXC_DATANODE && peraggstate->is_avg) {
|
if (IS_PGXC_DATANODE && peraggstate->is_avg) {
|
||||||
|
Reference in New Issue
Block a user