MCPcopy Create free account
hub / github.com/apache/cloudberry / advance_aggregates

Function advance_aggregates

src/backend/executor/nodeAgg.c:855–863  ·  view source on GitHub ↗

* Advance each aggregate transition state for one input tuple. The input * tuple has been stored in tmpcontext->ecxt_outertuple, so that it is * accessible to ExecEvalExpr. * * We have two sets of transition states to handle: one for sorted aggregation * and one for hashed; we do them both here, to avoid multiple evaluation of * the inputs. * * When called, CurrentMemoryContext should be

Source from the content-addressed store, hash-verified

853 * When called, CurrentMemoryContext should be the per-query context.
854 */
855static void
856advance_aggregates(AggState *aggstate)
857{
858 bool dummynull;
859
860 ExecEvalExprSwitchContext(aggstate->phase->evaltrans,
861 aggstate->tmpcontext,
862 &dummynull);
863}
864
865/*
866 * Run the transition function for a DISTINCT or ORDER BY aggregate

Callers 3

agg_retrieve_directFunction · 0.85
agg_fill_hash_tableFunction · 0.85
agg_refill_hash_tableFunction · 0.85

Calls 1

Tested by

no test coverage detected