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

Function select_current_set

src/backend/executor/nodeAgg.c:491–504  ·  view source on GitHub ↗

* Select the current grouping set; affects current_set and * curaggcontext. */

Source from the content-addressed store, hash-verified

489 * curaggcontext.
490 */
491static void
492select_current_set(AggState *aggstate, int setno, bool is_hash)
493{
494 /*
495 * When changing this, also adapt ExecAggPlainTransByVal() and
496 * ExecAggPlainTransByRef().
497 */
498 if (is_hash)
499 aggstate->curaggcontext = aggstate->hashcontext;
500 else
501 aggstate->curaggcontext = aggstate->aggcontexts[setno];
502
503 aggstate->current_set = setno;
504}
505
506/*
507 * Switch to phase "newphase", which must either be 0 or 1 (to reset) or

Callers 8

initialize_aggregatesFunction · 0.85
lookup_hash_entriesFunction · 0.85
agg_retrieve_directFunction · 0.85
agg_fill_hash_tableFunction · 0.85
agg_refill_hash_tableFunction · 0.85
ExecInitAggFunction · 0.85
ExecReScanAggFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected