amogh-jahagirdar commented on code in PR #11131: URL: https://github.com/apache/iceberg/pull/11131#discussion_r1815723992
########## 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: Removing the check which led to always rewriting a delete manifest in case it had aged off deletes simplified this, for context see: https://github.com/apache/iceberg/pull/11131#discussion_r1815710103 I moved the referenced check a bit more explicitly up front during the filtering and also avoided some additional referenced set checks (previously we were doing that a few times) but now it should only happen once. -- 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