TaoZex commented on code in PR #2748: URL: https://github.com/apache/incubator-paimon/pull/2748#discussion_r1466162019
########## paimon-core/src/main/java/org/apache/paimon/operation/FileStoreCommitImpl.java: ########## @@ -694,10 +707,14 @@ public boolean tryCommitOnce( Snapshot.CommitKind commitKind, @Nullable Snapshot latestSnapshot, @Nullable Long safeLatestSnapshotId, + String branchName, @Nullable String newStatsFileName) { long newSnapshotId = latestSnapshot == null ? Snapshot.FIRST_SNAPSHOT_ID : latestSnapshot.id() + 1; - Path newSnapshotPath = snapshotManager.snapshotPath(newSnapshotId); + Path newSnapshotPath = + branchName.equals(MAIN_BRANCH) Review Comment: It will call the getBranchPath method.  -- 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: issues-unsubscr...@paimon.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org