Values in the `offsets` Buffer of a ListArray can’t be left undefined because the length of a valid entry before a NULL entry is the offset associated with that NULL entry minus the previous offset.
The ListViewArray format I’m working on doesn’t have that restriction because all the information associated with entry i depends only on validity[i], offsets[i], and sizes[i]. On Wed, 28 Jun 2023 at 12:04 wish maple <maplewish...@gmail.com> wrote: > Hi, > > By looking at the arrow standard, when it comes to nested structure, like > StructArray[1] or FixedListArray[2], when parent is not valid, the > correspond child leaves "undefined". > > If it's a BinaryArray, when when it parent is not valid, would a validity > member point to a undefined address? > > And if it's ListArray[3], when it parent is not valid, should it offset and > size be valid? > > Thanks, > Xuwei Fu > > [1] https://arrow.apache.org/docs/format/Columnar.html#struct-layout > [2] > https://arrow.apache.org/docs/format/Columnar.html#fixed-size-list-layout > [3] > > https://arrow.apache.org/docs/format/Columnar.html#variable-size-list-layout >