Use NullBuffer in ArrayData #3775
Labels
arrow
Changes to the arrow crate
enhancement
Any new improvement worthy of a entry in the changelog
parquet
Changes to the parquet crate
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
#3749 added a new
NullBuffer
abstraction, as part of #1176 it is necessary to switchArrayData
over to using it.A complicating factor is that
ArrayData::offset
currently applies to both the values and the null buffer, this leads to two options:ArrayData::null_buffer
returning the underlyingBuffer
relying on clients to apply the offsetArrayData::null_buffer
toNullBuffer
breaking downstreamsDescribe the solution you'd like
Option 2. puts us in a better place for #1176 as it leaves the offset as just applying to the array values, allowing for the null buffer to have a different offset. It also leads to a better API for users.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: