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

Function ReuseHashTable

src/backend/executor/nodeAgg.c:5227–5237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5225}
5226
5227bool
5228ReuseHashTable(AggState *node)
5229{
5230 PlanState *outerPlan = outerPlanState(node);
5231 Agg *aggnode = (Agg *) node->ss.ps.plan;
5232
5233 return (outerPlan->chgParam == NULL &&
5234 !node->hash_ever_spilled &&
5235 !node->streaming &&
5236 !bms_overlap(node->ss.ps.chgParam, aggnode->aggParams));
5237}
5238
5239/*
5240 * Save statistics into the cdbexplainbuf for EXPLAIN ANALYZE

Callers 2

ExecReScanAggFunction · 0.85
ExecSquelchAggFunction · 0.85

Calls 1

bms_overlapFunction · 0.85

Tested by

no test coverage detected