aokolnychyi commented on code in PR #8432: URL: https://github.com/apache/iceberg/pull/8432#discussion_r1310696656
########## core/src/main/java/org/apache/iceberg/ManifestReader.java: ########## @@ -203,32 +203,46 @@ ManifestReader<F> scanMetrics(ScanMetrics newScanMetrics) { } CloseableIterable<ManifestEntry<F>> entries() { - if ((rowFilter != null && rowFilter != Expressions.alwaysTrue()) - || (partFilter != null && partFilter != Expressions.alwaysTrue()) - || (partitionSet != null)) { + return entries(false /* all entries */); + } + + private CloseableIterable<ManifestEntry<F>> entries(boolean onlyLive) { + if (hasRowFilter() || hasPartitionFilter() || partitionSet != null) { Review Comment: I had to add `hasRowFilter()` and `hasPartitionFilter()` to avoid cyclomatic complexity warnings. -- 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