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


##########
core/src/main/java/org/apache/iceberg/SnapshotProducer.java:
##########
@@ -104,7 +104,7 @@ public void accept(String file) {
       };
 
   /** Cache used to enrich ManifestFile instances that are written to a 
ManifestListWriter. */
-  private final LoadingCache<ManifestFile, ManifestFile> manifestsWithMetadata;
+  private final Cache<ManifestCacheKey, ManifestFile> manifestsWithMetadata;

Review Comment:
   This adds added/existing/deleted counts to a manifest's metadata. Why would 
that change the data sequence number or first row ID?
   
   Please keep answers small and direct.



##########
core/src/main/java/org/apache/iceberg/ManifestFilterManager.java:
##########
@@ -90,7 +90,7 @@ public String partition() {
   private Set<String> removedDataFilePaths = Sets.newHashSet();
 
   // cache filtered manifests to avoid extra work when commits fail.
-  private final Map<ManifestFile, ManifestFile> filteredManifests = 
Maps.newConcurrentMap();
+  private final Map<ManifestCacheKey, ManifestFile> filteredManifests = 
Maps.newConcurrentMap();

Review Comment:
   Filtering a manifest does not change its data sequence number or first row 
ID so I don't see why this is needed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to