* Initialize the hash table to empty. */
| 29 | * Initialize the hash table to empty. |
| 30 | */ |
| 31 | static void |
| 32 | build_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 | /* ---------------------------------------------------------------- |
no test coverage detected