You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix problem writing sliced BooleanBuffers as fast-encoding format (#1522)
## Which issue does this PR close?
Closes#1520.
## Rationale for this change
This is a problem I found when working on #1511, the null bits were not correctly written and caused test failures. This patch is an attempt to fix it.
This patch is only aiming for fixing correctness problems. As #1190 (comment) pointed out, the fast BatchWriter may write full data buffer for sliced `Utf8` arrays, so there's still some performance implications when working with sliced arrays.
## What changes are included in this PR?
Correctly take slicing indices and length into account when writing BooleanBuffers. This applies to null bits of all arrays, and the values of boolean arrays.
## How are these changes tested?
Added a new round-trip test for sliced record batches.
0 commit comments