amogh-jahagirdar commented on code in PR #11131:
URL: https://github.com/apache/iceberg/pull/11131#discussion_r1800275372


##########
core/src/main/java/org/apache/iceberg/ManifestFilterManager.java:
##########
@@ -370,14 +407,7 @@ private boolean canContainDeletedFiles(ManifestFile 
manifest) {
       canContainDroppedFiles = false;
     }
 
-    boolean canContainDropBySeq =
-        manifest.content() == ManifestContent.DELETES
-            && manifest.minSequenceNumber() < minSequenceNumber;
-
-    return canContainExpressionDeletes
-        || canContainDroppedPartitions
-        || canContainDroppedFiles
-        || canContainDropBySeq;
+    return canContainExpressionDeletes || canContainDroppedPartitions || 
canContainDroppedFiles;

Review Comment:
   Moved the canContainDropBy seq check first because it's possible that a 
manifest is not referenced but still needs to be rewritten in the case there 
are aged out deletes. 



-- 
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...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to