rdblue commented on code in PR #11131:
URL: https://github.com/apache/iceberg/pull/11131#discussion_r1813954048


##########
core/src/main/java/org/apache/iceberg/ManifestFilterManager.java:
##########
@@ -323,11 +345,15 @@ private ManifestFile filterManifest(Schema tableSchema, 
ManifestFile manifest) {
       PartitionSpec spec = reader.spec();
       PartitionAndMetricsEvaluator evaluator =
           new PartitionAndMetricsEvaluator(tableSchema, spec, 
deleteExpression);
+      boolean hasDeletedFiles = 
manifestsReferencedForDeletes.contains(manifest.path());
+      if (hasDeletedFiles) {

Review Comment:
   Ah, I see that this may actually be caught by `canContainDeletedFiles`.
   
   I think part of the problem is that this is trying to use instance state 
rather than passing data through methods. I think the logic would be more clear 
if state were passed through args rather than relying on instance fields 
several calls down the chain.



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