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

Function build_hash_table

src/backend/executor/nodeRecursiveunion.c:31–53  ·  view source on GitHub ↗

* Initialize the hash table to empty. */

Source from the content-addressed store, hash-verified

29 * Initialize the hash table to empty.
30 */
31static void
32build_hash_table(RecursiveUnionState *rustate)
33{
34 RecursiveUnion *node = (RecursiveUnion *) rustate->ps.plan;
35 TupleDesc desc = ExecGetResultType(outerPlanState(rustate));
36
37 Assert(node->numCols > 0);
38 Assert(node->numGroups > 0);
39
40 rustate->hashtable = BuildTupleHashTableExt(&rustate->ps,
41 desc,
42 node->numCols,
43 node->dupColIdx,
44 rustate->eqfuncoids,
45 rustate->hashfunctions,
46 node->dupCollations,
47 node->numGroups,
48 0,
49 rustate->ps.state->es_query_cxt,
50 rustate->tableContext,
51 rustate->tempContext,
52 false);
53}
54
55
56/* ----------------------------------------------------------------

Callers 1

ExecInitRecursiveUnionFunction · 0.70

Calls 2

ExecGetResultTypeFunction · 0.85
BuildTupleHashTableExtFunction · 0.85

Tested by

no test coverage detected