Skip to content

fix(encoding): support sparse boolean lists in full-zip encoding#21

Merged
ilya-zlobintsev merged 1 commit into
release-3.0.0from
backport-bitpacked-array-fix
May 11, 2026
Merged

fix(encoding): support sparse boolean lists in full-zip encoding#21
ilya-zlobintsev merged 1 commit into
release-3.0.0from
backport-bitpacked-array-fix

Conversation

@ilya-zlobintsev
Copy link
Copy Markdown
Member

Backport of commit shenganzhang@978365f (as of creating this PR, not yet merged upstream)

Booleans encoded as 1-bit packed values cannot be interleaved byte-by-byte
in the full-zip layout, which caused a panic ("Non-byte aligned full-zip
compression not yet supported") when a list of booleans was sparse enough
to trigger the miniblock → full-zip fallback (introduced in lance-format#6234).

Fix: expand 1-bit boolean values to 1 byte each before full-zip encoding,
and re-pack bytes to Arrow's bit-packed format on decode.

Closes lance-format#6681

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the bug Something isn't working label May 11, 2026
@ilya-zlobintsev ilya-zlobintsev merged commit 09430b2 into release-3.0.0 May 11, 2026
3 checks passed
@ilya-zlobintsev ilya-zlobintsev deleted the backport-bitpacked-array-fix branch May 11, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants