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

Function slotAllNulls

src/backend/executor/nodeSubplan.c:763–775  ·  view source on GitHub ↗

* slotAllNulls: is the slot completely NULL? * * This does not test for dropped columns, which is OK because we only * use it on projected tuples. */

Source from the content-addressed store, hash-verified

761 * use it on projected tuples.
762 */
763static bool
764slotAllNulls(TupleTableSlot *slot)
765{
766 int ncols = slot->tts_tupleDescriptor->natts;
767 int i;
768
769 for (i = 1; i <= ncols; i++)
770 {
771 if (!slot_attisnull(slot, i))
772 return false;
773 }
774 return true;
775}
776
777/*
778 * slotNoNulls: is the slot entirely not NULL?

Callers 1

ExecHashSubPlanFunction · 0.85

Calls 1

slot_attisnullFunction · 0.85

Tested by

no test coverage detected