pvary commented on code in PR #15241:
URL: https://github.com/apache/iceberg/pull/15241#discussion_r2773281185


##########
core/src/main/java/org/apache/iceberg/util/SnapshotUtil.java:
##########
@@ -536,4 +540,108 @@ public static Snapshot latestSnapshot(TableMetadata 
metadata, String branch) {
 
     return metadata.snapshot(ref.snapshotId());
   }
+
+  /**
+   * Return all data files added to the table in the given snapshot.
+   *
+   * @param table the table that owns the snapshot
+   * @param snapshot the snapshot to detect changes for
+   * @return all data files added to the table in this snapshot
+   */
+  public static Iterable<DataFile> addedDataFiles(Table table, Snapshot 
snapshot) {

Review Comment:
   +1
   
   It is very easy to call the others if `table` is available.



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