[core] Add IF NOT EXISTS support for create_branch operation#7353
Merged
JingsongLi merged 1 commit intoapache:masterfrom Mar 7, 2026
Merged
[core] Add IF NOT EXISTS support for create_branch operation#7353JingsongLi merged 1 commit intoapache:masterfrom
JingsongLi merged 1 commit intoapache:masterfrom
Conversation
This commit adds the `ignoreIfExists` parameter to the create_branch operation across all layers: Core Layer: - Add `createBranch(String branchName, boolean ignoreIfExists)` method to Table interface - Add `createBranch(String branchName, String tagName, boolean ignoreIfExists)` method to Table interface - Add corresponding methods to BranchManager interface - Update AbstractFileStoreTable, FormatTable, DelegatedFileStoreTable, ReadonlyTable, PrivilegedFileStoreTable implementations - Update Catalog interface with default method for ignoreIfExists support - Update CatalogBranchManager and FileSystemBranchManager implementations Flink Layer: - Update CreateBranchProcedure with optional ignoreIfExists parameter - Update CreateBranchAction and CreateBranchActionFactory - Update MultipleParameterToolAdapter for parsing ignoreIfExists option Spark Layer: - Update CreateBranchProcedure with optional ignoreIfExists parameter Testing: - Add test cases for createBranch with ignoreIfExists in SimpleTableTestBase - Add test cases for createBranch with ignoreIfExists in BranchActionITCase All existing tests continue to pass, ensuring backward compatibility.
2 tasks
Contributor
Author
|
@JingsongLi Thank you for the review and merge~ |
jerry-024
added a commit
to jerry-024/paimon
that referenced
this pull request
Mar 10, 2026
* upstream/master: (31 commits) [python] Correct pyroaring version in requirements [test] Enrich table name in MergeIntoTableTestBase [test] Fix unstable test: FileStoreLookupFunctionTest.testLookupScanLeak [python] Remove useless parameters in blob_writer.py [rest] Introduce reset consumer api in rest (apache#7372) [python] Introduce Python CLI table snapshot (apache#7373) [python] Fix time mapping by always using time32 (apache#7371) [python] Introduce catalog list-dbs in Python CLI (apache#7366) [hotfix][docs] replace the documentation URL for data-types blob (apache#7370) [python] Add i short name to ignore-if-not-exists for database [python] Support dynamic bucket write (apache#7363) [python] Introduce database related commands to Python CLI (apache#7362) [python] Introduce table import, drop and alter to Python CLI (apache#7360) [python] Fix py version required in README (apache#7361) [test] Add missing LeafFunction coverage in PredicateJsonSerdeTest (apache#7359) [python] support predicate NotBetween, Like function (apache#7352) [python] Introduce Paimon CLI in PyPaimon (apache#7358) [doc] Document ignoreIfExists for create_branch [core] Add IF NOT EXISTS support for create_branch operation (apache#7353) [python] Remove oss and pylance from requirements deps ...
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.
This commit adds the
ignoreIfExistsparameter to the create_branch operation across all layers:Core Layer:
createBranch(String branchName, boolean ignoreIfExists)method to Table interfacecreateBranch(String branchName, String tagName, boolean ignoreIfExists)method to Table interfaceFlink Layer:
Spark Layer:
Testing:
All existing tests continue to pass, ensuring backward compatibility.
Purpose
Linked issue: close #7277
Tests
API and Format
Documentation
Generative AI tooling