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

Function hash_agg_set_limits

src/backend/executor/nodeAgg.c:1858–1917  ·  view source on GitHub ↗

* Set limits that trigger spilling to avoid exceeding hash_mem. Consider the * number of partitions we expect to create (if we do spill). * * There are two limits: a memory limit, and also an ngroups limit. The * ngroups limit becomes important when we expect transition values to grow * substantially larger than the initial value. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

agg_refill_hash_tableFunction · 0.85
ExecInitAggFunction · 0.85
cost_aggFunction · 0.85

Calls 2

PlanStateOperatorMemKBFunction · 0.85

Tested by

no test coverage detected