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

Function fetch_tuple_flag

src/backend/executor/nodeSetOp.c:101–114  ·  view source on GitHub ↗

* Fetch the "flag" column from an input tuple. * This is an integer column with value 0 for left side, 1 for right side. */

Source from the content-addressed store, hash-verified

99 * This is an integer column with value 0 for left side, 1 for right side.
100 */
101static int
102fetch_tuple_flag(SetOpState *setopstate, TupleTableSlot *inputslot)
103{
104 SetOp *node = (SetOp *) setopstate->ps.plan;
105 int flag;
106 bool isNull;
107
108 flag = DatumGetInt32(slot_getattr(inputslot,
109 node->flagColIdx,
110 &isNull));
111 Assert(!isNull);
112 Assert(flag == 0 || flag == 1);
113 return flag;
114}
115
116/*
117 * Initialize the hash table to empty.

Callers 2

setop_retrieve_directFunction · 0.85
setop_fill_hash_tableFunction · 0.85

Calls 2

DatumGetInt32Function · 0.85
slot_getattrFunction · 0.85

Tested by

no test coverage detected