dark2momo opened a new pull request, #7353: URL: https://github.com/apache/paimon/pull/7353
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. <!-- Please specify the module before the PR name: [core] ... or [flink] ... --> ### Purpose <!-- Linking this pull request to the issue --> Linked issue: close #xxx <!-- What is the purpose of the change --> ### Tests <!-- List UT and IT cases to verify this change --> ### API and Format <!-- Does this change affect API or storage format --> ### Documentation <!-- Does this change introduce a new feature --> ### Generative AI tooling <!-- If generative AI tooling has been used in the process of authoring this patch, please include the phrase: 'Generated-by: ' followed by the name of the tool and its version. If no, write 'No'. Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
