rdblue commented on code in PR #11131: URL: https://github.com/apache/iceberg/pull/11131#discussion_r1813931853
########## 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) { + return filterManifestWithDeletedFiles(evaluator, manifest, reader); + } // this assumes that the manifest doesn't have files to remove and streams through the // manifest without copying data. if a manifest does have a file to remove, this will break // out of the loop and move on to filtering the manifest. - boolean hasDeletedFiles = manifestHasDeletedFiles(evaluator, reader); + hasDeletedFiles = manifestHasDeletedFiles(evaluator, reader); Review Comment: I think this change is unnecessary. The block above doesn't need to set the same variable. -- 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