FangYongs commented on code in PR #2911:
URL: https://github.com/apache/incubator-paimon/pull/2911#discussion_r1521291044
##########
paimon-core/src/main/java/org/apache/paimon/utils/BranchManager.java:
##########
@@ -65,19 +70,43 @@ public BranchManager(
this.schemaManager = schemaManager;
}
+ /** Commit specify branch to main. */
+ public void commitMainBranch(String branchName) throws IOException {
+ Path mainBranchFile = new Path(tablePath, MAIN_BRANCH_FILE);
+ fileIO.delete(mainBranchFile, false);
Review Comment:
Why the main branch file is deleted first? Can it be overwrited directly?
--
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]