pvary commented on code in PR #19099:
URL: https://github.com/apache/iceberg/pull/19099#discussion_r4709969560
##########
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:
I don't like referencing another method description in javadoc if the doc is
not too big
--
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]