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

Function array_get_isnull

src/backend/utils/adt/arrayfuncs.c:4670–4678  ·  view source on GitHub ↗

* Check whether a specific array element is NULL * * nullbitmap: pointer to array's null bitmap (NULL if none) * offset: 0-based linear element number of array element */

Source from the content-addressed store, hash-verified

4668 * offset: 0-based linear element number of array element
4669 */
4670static bool
4671array_get_isnull(const bits8 *nullbitmap, int offset)
4672{
4673 if (nullbitmap == NULL)
4674 return false; /* assume not null */
4675 if (nullbitmap[offset / 8] & (1 << (offset % 8)))
4676 return false; /* not null */
4677 return true;
4678}
4679
4680/*
4681 * Set a specific array element's null-bitmap entry

Callers 4

array_get_elementFunction · 0.85
array_set_elementFunction · 0.85
array_iterateFunction · 0.85
array_slice_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected