JingsongLi commented on code in PR #5095:
URL: https://github.com/apache/paimon/pull/5095#discussion_r1961529274


##########
paimon-core/src/main/java/org/apache/paimon/operation/KeyValueFileStoreScan.java:
##########
@@ -99,6 +100,11 @@ public KeyValueFileStoreScan(
         this.mergeEngine = mergeEngine;
         this.changelogProducer = changelogProducer;
         this.fileIndexReadEnabled = fileIndexReadEnabled;
+        this.onlyReadRealBuckets = onlyReadRealBuckets;
+
+        if (onlyReadRealBuckets) {
+            super.withBucketFilter(bucket -> bucket >= 0);

Review Comment:
   this will overwrite old bucket filter, or be overwrited new bucket filter, I 
see you handle `withBucketFilter` too, but it looks not so safe.. maybe we 
should add a method to skip negative buckets... 



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