Le 18/02/2022 à 19:29, Phillip Cloud a écrit :
The description underneath the example says:
While a struct does not have physical storage for each of its semantic
slots
(i.e. each scalar C-like struct), an entire struct slot can be set to
null via the validity bitmap.
To me this suggests that appending a sentinel value to the values buffer
for a field is allowed,
but not required.
Am I understanding this correctly?
It is definitely required according to my understanding, and to how the
C++ implementation works. The validation functions in the C++
implementation also check for this (if a child buffer is too small for
the number of values advertised by the parent, it is an error).
Regards
Antoine.