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

Function ExecAssertOp

src/backend/executor/nodeAssertOp.c:69–85  ·  view source on GitHub ↗

* Evaluate Constraints (in node->ps.qual) and project output TupleTableSlot. * */

Source from the content-addressed store, hash-verified

67 * Evaluate Constraints (in node->ps.qual) and project output TupleTableSlot.
68 * */
69static TupleTableSlot*
70ExecAssertOp(PlanState *pstate)
71{
72 PlanState *outerNode = outerPlanState(pstate);
73 TupleTableSlot *slot = ExecProcNode(outerNode);
74
75 if (TupIsNull(slot))
76 {
77 return NULL;
78 }
79
80 AssertOpState *node = castNode(AssertOpState, pstate);
81
82 CheckForAssertViolations(node, slot);
83
84 return ExecProject(node->ps.ps_ProjInfo);
85}
86
87/**
88 * Init AssertOp, which sets the ProjectInfo and

Callers

nothing calls this directly

Calls 3

ExecProcNodeFunction · 0.85
CheckForAssertViolationsFunction · 0.85
ExecProjectFunction · 0.85

Tested by

no test coverage detected