Skip to content

fix(encoding): honor explicit LZ4 per-value compression - #7

Open
dentiny wants to merge 2 commits into
mainfrom
codex/fix-per-value-lz4
Open

dentiny wants to merge 2 commits into
mainfrom
codex/fix-per-value-lz4

Conversation

@dentiny

@dentiny dentiny commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Explicit lance-encoding:compression = "lz4" was ignored for variable-width values using per-value/full-zip compression: the selection path only handled zstd, then fell back to the default Zstd compressor.

Parse the explicit non-FSST scheme when selecting the per-value compressor. Automatic compression and the existing none/FSST paths retain their behavior.

The regression test checks the emitted LZ4 encoding and decoding round trip for 32/64-bit offsets and values below/above 32 KiB. All four cases selected Zstd before the fix.

Validation:

  • cargo test -p lance-encoding compression::tests --profile ci --locked --offline: 43 passed.
  • cargo fmt --all -- --check passed.
  • cargo clippy --all --tests --benches --profile ci --locked --offline -- -D warnings passed.

The fix is based on the conversion service's existing pinned Lance commit, so it can be consumed without unrelated dependency upgrades.

@github-actions github-actions Bot added A-encoding bug Something isn't working labels Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-encoding bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant