jiwen624 commented on code in PR #19099:
URL: https://github.com/apache/iceberg/pull/19099#discussion_r4712188547


##########
core/src/main/java/org/apache/iceberg/util/SnapshotUtil.java:
##########
@@ -158,13 +158,22 @@ public static Iterable<Snapshot> ancestorsOf(long 
snapshotId, Function<Long, Sna
    * @throws IllegalStateException if the first ancestor after the given time 
can't be determined
    */
   public static Snapshot oldestAncestorAfter(Table table, long 
timestampMillis) {
-    if (table.currentSnapshot() == null) {
+    return oldestAncestorAfter(table, null, timestampMillis);
+  }
+
+  /**
+   * Same as {@link #oldestAncestorAfter(Table, long)}, but traverses the 
history of the given

Review Comment:
   Done. Thanks 👍 



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