amogh-jahagirdar commented on code in PR #13614:
URL: https://github.com/apache/iceberg/pull/13614#discussion_r2223240990
##########
core/src/test/java/org/apache/iceberg/TestRemoveSnapshots.java:
##########
@@ -236,7 +236,7 @@ public void testExpireOlderThanWithRollback() {
Set<String> deletedFiles = Sets.newHashSet();
-
removeSnapshots(table).expireOlderThan(tAfterCommits).deleteWith(deletedFiles::add).commit();
+
table.expireSnapshots().expireOlderThan(tAfterCommits).deleteWith(deletedFiles::add).commit();
Review Comment:
@rdblue @sqd We actually already have some test cases around the whole
rollback/staged cases, and with the new check for main ancestry we'd end up
failing since `removeSnapshots(table)` parameterizes around both incremental
and not incremental.
I generally agree around biasing to the reachable analysis even if it
technically could be incremental since reachability is always a clearly correct
way of cleaning files but just want to call out that users can end up failing
if they end up explicitly specifying incremental and also wanted to call out
why I modified these existing tests.
I also don't think this is a huge deal since the whole `withIncremental` API
is not on the interface but requires a user to cast to `RemoveSnapshots`
implementation (we added this API initially for testing against both cases and
making sure the new reachable analysis was also correct)
--
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]