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 2020/04/16 15:53:50 UTC

[GitHub] [incubator-iceberg] leoluan2009 commented on a change in pull request #931: Add residual evaluation for MR reader

leoluan2009 commented on a change in pull request #931: Add residual evaluation for MR reader
URL: https://github.com/apache/incubator-iceberg/pull/931#discussion_r409666502
 
 

 ##########
 File path: mr/src/main/java/org/apache/iceberg/mr/mapreduce/IcebergInputFormat.java
 ##########
 @@ -394,8 +378,14 @@ public void close() throws IOException {
               String.format("Cannot read %s file: %s", file.format().name(), file.path()));
       }
       currentCloseable = iterable;
-      //TODO: Apply residual filtering before returning the iterator
-      return iterable.iterator();
+      boolean applyResidualFiltering = !context.getConfiguration().getBoolean(SKIP_RESIDUAL_FILTERING, false);
+      if (applyResidualFiltering && currentTask.residual() != null &&
 
 Review comment:
   Can you assign the result of currentTask.residual() to a local variable to reduce method call?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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