Aitozi commented on code in PR #7793:
URL: https://github.com/apache/paimon/pull/7793#discussion_r3220099055


##########
paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java:
##########
@@ -469,16 +469,22 @@ public ExpireSnapshots newExpireChangelog() {
     public TableCommitImpl newCommit(String commitUser) {
         CoreOptions options = coreOptions();
         return new TableCommitImpl(
-                store().newCommit(commitUser, this),
-                newExpireRunnable(),
-                options.writeOnly() ? null : 
store().newPartitionExpire(commitUser, this),
-                options.writeOnly() ? null : store().newTagAutoManager(this),
-                options.writeOnly() ? null : 
CoreOptions.fromMap(options()).consumerExpireTime(),
-                new ConsumerManager(fileIO, path, snapshotManager().branch()),
-                options.snapshotExpireExecutionMode(),
-                name(),
-                options.forceCreatingSnapshot(),
-                options.fileOperationThreadNum());
+                        store().newCommit(commitUser, this),
+                        newExpireRunnable(),
+                        options.writeOnly() ? null : 
store().newPartitionExpire(commitUser, this),
+                        options.writeOnly() ? null : 
store().newTagAutoManager(this),
+                        options.writeOnly()
+                                ? null
+                                : 
CoreOptions.fromMap(options()).consumerExpireTime(),
+                        new ConsumerManager(fileIO, path, 
snapshotManager().branch()),
+                        options.snapshotExpireExecutionMode(),
+                        name(),
+                        options.forceCreatingSnapshot(),
+                        options.fileOperationThreadNum())
+                .checkSameBucket(
+                        bucketMode() == BucketMode.HASH_FIXED
+                                && options.writeOnly()
+                                && !options.bucketAppendOrdered());

Review Comment:
   Fixed
   



##########
paimon-core/src/main/java/org/apache/paimon/operation/commit/CommitScanner.java:
##########
@@ -89,6 +101,34 @@ public List<SimpleFileEntry> 
readAllEntriesFromChangedPartitions(
         }
     }
 
+    public Map<BinaryRow, Integer> readTotalBuckets(
+            Snapshot snapshot, List<BinaryRow> changedPartitions) {
+        try {
+            Set<BinaryRow> remainingPartitions = new 
HashSet<>(changedPartitions);
+            Map<BinaryRow, Integer> totalBuckets = new HashMap<>();
+            FileStoreScan freshScan = scanSupplier.get().dropStats();

Review Comment:
   Removed



-- 
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]

Reply via email to