!4909 修复聚合函数触发转换函数时ignore失效的问题

Merge pull request !4909 from yuchao/master
This commit is contained in:
opengauss_bot
2024-03-01 02:04:45 +00:00
committed by Gitee

View File

@ -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) {