nastra commented on code in PR #7621:
URL: https://github.com/apache/iceberg/pull/7621#discussion_r1195255426


##########
core/src/main/java/org/apache/iceberg/util/SnapshotUtil.java:
##########
@@ -145,8 +145,16 @@ public static Snapshot oldestAncestorOf(long snapshotId, 
Function<Long, Snapshot
   }
 
   public static Iterable<Snapshot> ancestorsOf(long snapshotId, Function<Long, 
Snapshot> lookup) {
+    return ancestorsOf(snapshotId, lookup, true);
+  }
+
+  public static Iterable<Snapshot> ancestorsOf(

Review Comment:
   this method only exists so that we have consistent error reporting in 
https://github.com/apache/iceberg/blob/1521296dd253c829dedc3e83ffda4cd2622667e2/core/src/test/java/org/apache/iceberg/TestSnapshotLoading.java#L169
 for V1 and V2 tables (because we want to skip the validation of the starting 
snapshot id).



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