Skip to content

Commit 6beca20

Browse files
committed
fix
1 parent 1a95f7c commit 6beca20

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

paimon-core/src/main/java/org/apache/paimon/utils/CatalogBranchManager.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void createBranch(String branchName) {
6565
try {
6666
executePost(catalog -> catalog.createBranch(identifier, branchName, null));
6767
} catch (UnsupportedOperationException e) {
68-
branchManager.dropBranch(branchName);
68+
branchManager.createBranch(branchName);
6969
}
7070
}
7171

@@ -74,11 +74,7 @@ public void createBranch(String branchName, @Nullable String tagName) {
7474
try {
7575
executePost(catalog -> catalog.createBranch(identifier, branchName, tagName));
7676
} catch (UnsupportedOperationException e) {
77-
if (tagName == null) {
78-
branchManager.createBranch(branchName);
79-
} else {
80-
branchManager.createBranch(branchName, tagName);
81-
}
77+
branchManager.createBranch(branchName, tagName);
8278
}
8379
}
8480

0 commit comments

Comments
 (0)