Repository navigation
feat(table): support data evolution compaction - #1249
Merged
JingsongLi merged 5 commits intoOct 29, 2026
Merged
Conversation
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.
Purpose
Extend the existing Rust compaction API to Data Evolution append tables, which
CompactBuildercurrently rejects. Merge normal-column files while preserving stable row IDs, sequence metadata and logical deletions.Follow-up to #1247; related to #286 as a Rust maintenance prerequisite. Python bindings remain separate.
Brief change log
compaction.min.file-num=1for single-file rewrites while ordinary append still requires at least two files.Tests
DataEvolutionCompactCoordinatorTest,DataEvolutionNormalCompactTaskTest,ConflictDetectionTestandDataEvolutionDeletionVectorTest.cargo fmt --all --checkandgit diff --checkpassed.-D warnings -A clippy::nonminimal_bool. Strict Clippy reports four existingnonminimal_booldiagnostics in unchanged files.Coverage includes four data formats, nulls, historical snapshots, field renames/name reuse/type promotion, nested updates, dedicated files, index freshness, both DV storage layouts, independent subsets and concurrent commits. A Java/Rust output-artifact roundtrip was not run.
API and Format
Reuse
new_compact_builder()andTableCommit::commit_compact; no new public API or storage-format version. Scope is normal files in unaware Data Evolution append tables with row tracking and no primary key.DV migration runs in Rust snapshot preparation on every CAS attempt. Java prepares the migration separately against a fixed snapshot and rejects concurrent DV replacement; Rust rereads the latest DVs while revalidating the compacted data inputs. If COMPACT publishes first, a DELETE prepared against replaced anchors/indexes is rejected and must be prepared again.
Dedicated Blob/Vector compaction, large-file splitting and deletion materialization remain unsupported. With deletion vectors enabled, a compact output may contain at most 4,294,967,296 physical row slots until 64-bit DV writing is available.
Documentation
Update
docs/src/compaction.mdwith Data Evolution planning, row/sequence preservation, deletion-vector handling, concurrency and supported limits.