You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/09/22 21:20:01 UTC

[GitHub] [iceberg] rdblue commented on a diff in pull request #5815: Don't check row filter when deciding whether to copy data file with stats

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


##########
core/src/main/java/org/apache/iceberg/ManifestReader.java:
##########
@@ -268,8 +268,7 @@ CloseableIterable<ManifestEntry<F>> liveEntries() {
   /** @return an Iterator of DataFile. Makes defensive copies of files before returning */
   @Override
   public CloseableIterator<F> iterator() {
-    return CloseableIterable.transform(
-            liveEntries(), e -> e.file().copy(!dropStats(rowFilter, columns)))
+    return CloseableIterable.transform(liveEntries(), e -> e.file().copy(!dropStats(columns)))

Review Comment:
   I realize that this isn't changing what's already done, but I think it would be better to have a variable for the result of `dropStats`. That's not going to change and we don't need to evaluate whether to drop stats for the columns every time this runs!



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

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


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