rdblue commented on code in PR #4578:
URL: https://github.com/apache/iceberg/pull/4578#discussion_r873049246
##########
core/src/main/java/org/apache/iceberg/RemoveSnapshots.java:
##########
@@ -190,6 +269,11 @@ public void commit() {
.onlyRetryOn(CommitFailedException.class)
.run(item -> {
TableMetadata updated = internalApply();
+ if (cleanExpiredFiles && updated.refs().size() > 1) {
+ throw new UnsupportedOperationException(
+ "Cannot remove snapshots and clean files when there is more
than 1 ref or multiple lineages");
Review Comment:
This needs to mention that it is incremental. `"Cannot incrementally clean
files for tables with more than 1 ref"`
--
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]