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


##########
paimon-core/src/main/java/org/apache/paimon/append/dataevolution/DataEvolutionRowIdAssignmentPlanner.java:
##########
@@ -297,27 +329,87 @@ private void markRewrittenManifests(
         }
     }
 
+    private boolean manifestMayContainSelectedRange(ManifestFileMeta 
manifestMeta) {
+        Long minimum = manifestMeta.minRowId();
+        Long maximum = manifestMeta.maxRowId();
+        if (minimum == null || maximum == null) {
+            return true;
+        }
+        for (SelectedPartition partition : selectedPartitions.values()) {
+            if (rangesOverlap(minimum, maximum, partition.logicalRanges)) {
+                return true;
+            }
+        }
+        return false;
+    }
+
+    private static boolean rangesOverlap(

Review Comment:
   Add this method to `PrimitiveRowRanges`.



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