Repository navigation
[core] Support appending shards to centroid indexes - #1595
Open
JingsongLi wants to merge 1 commit into
Open
JingsongLi wants to merge 1 commit into
JingsongLi wants to merge 1 commit into
Conversation
Port the centroid shard append behavior from apache/paimon#11712, including batch-aware reads, atomic range extension, and Rust, Python, and DataFusion entry points.
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
Port centroid shard appends from apache/paimon#11712. Rows added to a partition with a centroid vector index can be indexed incrementally using that partition's existing routing model.
Related to #1490.
Brief change log
append_shards()in Rust and Python andCALL sys.add_global_index_shardsin DataFusion.Tests
cargo test -p paimon --lib --test centroid_java_interop_test --lockedpassed 5,211 core tests and 3 interoperability tests. Rust can extend the Java-written shard and Bitmap fixture.RUST_MIN_STACK=16777216 cargo test -p paimon-datafusion --test read_tables --test procedures --test global_index_schema_evolution --test remaining_compat --lockedpassed 160 tests.CentroidTableInteropTestpassed 5 tests against the regenerated Rust fixture.API and Format
New centroid descriptors use Java's 30-byte header with batch offsets and sizes. Rust reads legacy centroid descriptors and upgrades the descriptors of retained files during a range extension. The SQL procedure returns a nullable Boolean
result. A disconnected range containing only null vectors records coverage with an empty router.Documentation
Document the SQL procedure, builder entry points, and interoperability fixture.
Codex assisted with implementation, review, and regression tests.