Repository navigation
feat(engine): SpillCompression::Zstd behind spill-compression feature (STN-7 #2341) - #4416
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/stn-7-compression
branch
3 times, most recently
from
May 18, 2026 01:27
6e8a18e to
9e91d04
Compare
oferchen
force-pushed
the
feature/stn-7-compression
branch
from
May 18, 2026 01:29
9e91d04 to
5d715a8
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spill-compressionCargo feature on theenginecrate (off by default) now pulls inzstd 0.13as an optional dependency and exposes theSpillCompression::Zstd { level }variant.SpillableReorderBuffergained awith_compression(...)builder; the default codec staysSpillCompression::None, so the historical raw payload format is preserved when the feature is off.0x00raw,0x01zstd) before the existing[u32 LE len][payload]framing so the reader can dispatch unambiguously.SpillError::UnsupportedCompression(u8)is returned when a default build encounters a zstd-tagged record (e.g. a spill file written by a feature-on build), instead of feeding garbage to the item codec.SpillCompression::Zstdwithout the feature is a compile error - the existing#[cfg(feature = "spill-compression")]gate on the enum variant is the "fail fast at construction" guarantee.Test plan
cargo fmt --allcleancompression_none_writes_uncompressed_tagverifies the leading tag byte is0x00under the default policy and the round-trip preserves values.compression_zstd_writes_compressed_tag(feature on only) verifies the tag byte is0x01and the zstd round-trip recovers the original values.compression_zstd_tag_without_feature_returns_unsupported(feature off only) injects a0x01tag into a spill file and confirms the reader surfacesSpillError::UnsupportedCompression(0x01).Closes #2341.