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 2019/02/27 17:23:30 UTC

[GitHub] rdblue commented on a change in pull request #108: Use the current schema in all partition specs in scan planning.

rdblue commented on a change in pull request #108: Use the current schema in all partition specs in scan planning.
URL: https://github.com/apache/incubator-iceberg/pull/108#discussion_r260857230
 
 

 ##########
 File path: core/src/main/java/com/netflix/iceberg/BaseTableScan.java
 ##########
 @@ -154,6 +155,16 @@ public InclusiveManifestEvaluator load(Integer specId) {
         }
       });
 
+  private final LoadingCache<Integer, Expression> PARTITION_EXPR_CACHE = CacheBuilder
+      .newBuilder()
 
 Review comment:
   Sorry, this name is misleading. This is an instance field, so as soon as the scan is finished it will be garbage collected. Also, there should only ever be a few partition specs and one expression. So this cache will be a few objects at most.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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