sqd commented on code in PR #13614:
URL: https://github.com/apache/iceberg/pull/13614#discussion_r2222702883
##########
core/src/main/java/org/apache/iceberg/RemoveSnapshots.java:
##########
@@ -375,7 +375,7 @@ private void cleanExpiredSnapshots() {
}
if (incrementalCleanup == null) {
- incrementalCleanup = current.refs().size() == 1;
+ incrementalCleanup = base.refs().size() == 1 && current.refs().size() ==
1;
Review Comment:
If incrementalCleanup is explicitly enabled by
`withIncrementalCleanup(true)`, but on this line we already know that it's
going to crash, does it make sense to fallback to full scan with a warning, or
just crash here?
--
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]