nastra commented on code in PR #12909:
URL: https://github.com/apache/iceberg/pull/12909#discussion_r2065672524
##########
core/src/main/java/org/apache/iceberg/MetadataUpdate.java:
##########
@@ -328,31 +328,13 @@ public void applyTo(TableMetadata.Builder
metadataBuilder) {
}
}
- /**
- * @deprecated since 1.9.0, will be removed in 1.10.0; Use {@link
MetadataUpdate.RemoveSnapshots}
- * instead.
- */
- @Deprecated
- class RemoveSnapshot implements MetadataUpdate {
- private final long snapshotId;
-
- public RemoveSnapshot(long snapshotId) {
- this.snapshotId = snapshotId;
- }
-
- public long snapshotId() {
- return snapshotId;
- }
-
- @Override
- public void applyTo(TableMetadata.Builder metadataBuilder) {
- metadataBuilder.removeSnapshots(ImmutableSet.of(snapshotId));
- }
- }
-
class RemoveSnapshots implements MetadataUpdate {
private final Set<Long> snapshotIds;
+ public RemoveSnapshots(Long snapshotId) {
Review Comment:
```suggestion
public RemoveSnapshots(long snapshotId) {
```
--
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]