feat: support identity-safe reordered fragment rewrites - #8814
Draft
LuQQiu wants to merge 5 commits into
Draft
Conversation
Contributor
|
Important This PR touches the Lance format specification. Substantive changes to the format specification — the If this is a meaningful format change:
|
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
Motivation
Some dataset maintenance operations physically permute existing rows instead of preserving input order. They still need to preserve logical row identity, keep existing indices correct, know final output fragment IDs when preparing associated work, and prevent later compaction from crossing caller-defined placement boundaries.
This PR adds generic write, remap, reservation, and planning primitives for those workflows. It does not define an ordering or partitioning policy.
Scope
This PR does not add fields to the transaction protobuf, change the Lance format, or combine a rewrite with a dataset-configuration update. Composite operations belong to Transaction V2.
Validation
cargo fmt --allcargo check --quiet -p lance -p lance-tablecargo check --quietinpython/cargo check --quietinjava/lance-jni/cargo test --quiet -p lance reordered --lib: 8 passedcargo test --quiet -p lance explicit_fragment_groups_are_hard_compaction_boundaries --lib: 1 passed