Repository navigation
[core] Support REST catalog version management - #1142
Merged
JingsongLi merged 2 commits intoOct 17, 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
Expose REST tag management, paginated tag listing, latest-snapshot metadata and guarded rollback through the Rust Catalog API and Python bindings, matching Java semantics. These capabilities already exist in PyPaimon; PyPaimon continues to use its Python REST client.
Changes
Instanttype and typed rollback request matching Java's snapshot/tag wire protocol, omitting absentfromSnapshotandtableIdguards.Catalogand implement them inRESTCatalogwithout resolving targets or publishing changes through local storage.The scope is existing PyPaimon functionality. No new dependencies are introduced.
Verification
cargo +1.98.0 test --quiet --locked -p paimon --test rest_branch_test --test rest_catalog_test— 153 tests.bindings/python/tests/test_catalog_versions.py— 36 tests.TZ=UTC cargo +1.98.0 test --quiet --locked -p paimon-datafusion --test procedures test_rollback— 4 tests. The timestamp procedure test interprets a local TIMESTAMP value as an epoch; UTC matches the CI environment.cargo +1.98.0 clippy --locked -p paimon -p paimon-datafusion -p pypaimon_rust --all-targets --features fulltext,vortex -- -D warnings.CI follow-up
The unit job exposed a stale tag error-mapping test that still expected lowercase resource types. Update it to Java's exact uppercase resource names and add assertions for unknown/lowercase resource types, missing latest snapshots and HTTP 501 preservation. The public interfaces are unchanged.
paimonlibrary tests withfulltext,vortex: 4276 passed, 6 ignored.-D warningsand rustfmt passed.