Repository navigation
feat(table): add incremental PK compaction and lookup changelogs - #1251
Draft
JingsongLi wants to merge 1 commit into
Draft
JingsongLi wants to merge 1 commit into
JingsongLi wants to merge 1 commit into
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
Support deletion-vector compaction and lookup changelog production for primary-key tables without repeatedly rewriting large historical runs. A small L0 update now looks up its previous state through
local-cache, writes the merged value and changelog, and marks the previous physical row deleted while preserving the higher-level data file.Brief change log
Tests
268 related tests passed:
cargo fmt --all -- --checkandgit diff --checkpassed.cargo clippy --locked -p paimon --lib --test pk_compact_test -- -D warnings -A clippy::nonminimal_boolpassed; the allowance covers the repository's existing lint findings with the local toolchain.API and Format
DV, lookup-changelog and first-row compact executors require an actual cache attached to the catalog/FileIO (
local-cache.enabled=true).local-cache.dirselects disk storage andlocal-cache.max-sizegoverns the shared quota;lookup.cache-max-disk-sizeis rejected.Task/result serialization now carries incremental selection, lookup DV notifications and changelog files. Public APIs expose changelog files and compaction/cache metrics. Table data and DV formats remain unchanged; local Lookup File artifacts use a disposable Rust-private format. Compaction uses incremental run selection exclusively.
Documentation
Updated the compaction guide, local-cache configuration guide and SQL feature documentation.