amogh-jahagirdar commented on code in PR #18074:
URL: https://github.com/apache/iceberg/pull/18074#discussion_r4454999434


##########
core/src/main/java/org/apache/iceberg/ManifestFilterManager.java:
##########
@@ -333,9 +333,9 @@ int replacedManifestsCount() {
    * Deletes filtered manifests that were created by this class, but are not 
in the committed
    * manifest set.
    *
-   * @param committed the set of manifest files that were committed
+   * @param committed the set of manifest paths that were committed

Review Comment:
   minor: It's best to try and avoid churn in comments wherever possible just 
to keep the diff easier to review; in this case the original comment still 
conceptually applies even though it's not the literal ManifestFile



##########
core/src/main/java/org/apache/iceberg/SnapshotProducer.java:
##########
@@ -108,7 +109,10 @@ public void accept(String file) {
   private final String commitUUID = UUID.randomUUID().toString();
   private final AtomicInteger manifestCount = new AtomicInteger(0);
   private final AtomicInteger attempt = new AtomicInteger(0);
-  private final List<String> manifestLists = Lists.newArrayList();
+
+  /** Manifest paths written to each manifest list, keyed by manifest list 
location. */
+  private final Map<String, Set<String>> manifestPathsByManifestList = 
Maps.newHashMap();

Review Comment:
   Minor: I'd rename to `manifestsByManifestList`, bit more concise. And then 
I'd drop the comment, it's fairly obvious from the name of the variable itself 



-- 
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