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: handle non-zero null buffer offset in raw shuffle format
The null bitmap in Arrow arrays can have a non-zero bit offset even
when ArrayData.offset() is 0 (e.g. after RecordBatch::slice). The
raw shuffle writer was copying the bitmap bytes verbatim, but the
reader assumes bits start at offset 0. This caused shifted null
bitmaps, corrupting data during shuffle and producing wrong query
results (e.g. TPC-DS q6 counts off by 1).
Fix by detecting non-zero bitmap offsets and emitting a re-aligned
copy. Add a roundtrip test with sliced batches to cover this case.
0 commit comments