Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .palantir/revapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,9 @@ acceptedBreaks:
- code: "java.method.addedToInterface"
new: "method org.apache.iceberg.ReplacePartitions org.apache.iceberg.ReplacePartitions::validateNoConflictingDeletes()"
justification: "Accept all changes prior to introductig API compatibility checks"
- code: "java.class.removed"
old: "interface org.apache.iceberg.Rollback"
justification: "{remove deprecated table.rollback}"
- code: "java.method.removed"
old: "method org.apache.iceberg.Rollback org.apache.iceberg.Table::rollback()"
justification: "{remove deprecated table.rollback}"
56 changes: 0 additions & 56 deletions api/src/main/java/org/apache/iceberg/Rollback.java

This file was deleted.

9 changes: 0 additions & 9 deletions api/src/main/java/org/apache/iceberg/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,6 @@ default AppendFiles newFastAppend() {
*/
ExpireSnapshots expireSnapshots();

/**
* Create a new {@link Rollback rollback API} to roll back to a previous snapshot and commit.
*
* @return a new {@link Rollback}
* @deprecated Replaced by {@link #manageSnapshots()}
*/
@Deprecated
Rollback rollback();

/**
* Create a new {@link ManageSnapshots manage snapshots API} to manage snapshots in this table and commit.
* @return a new {@link ManageSnapshots}
Expand Down
5 changes: 0 additions & 5 deletions core/src/main/java/org/apache/iceberg/BaseMetadataTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@ public ExpireSnapshots expireSnapshots() {
throw new UnsupportedOperationException("Cannot expire snapshots from a metadata table");
}

@Override
public Rollback rollback() {
throw new UnsupportedOperationException("Cannot roll back a metadata table");
}

@Override
public ManageSnapshots manageSnapshots() {
throw new UnsupportedOperationException("Cannot manage snapshots in a metadata table");
Expand Down
5 changes: 0 additions & 5 deletions core/src/main/java/org/apache/iceberg/BaseTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ public ExpireSnapshots expireSnapshots() {
return new RemoveSnapshots(ops);
}

@Override
public Rollback rollback() {
return new RollbackToSnapshot(name, ops);
}

@Override
public ManageSnapshots manageSnapshots() {
return new SnapshotManager(name, ops);
Expand Down
5 changes: 0 additions & 5 deletions core/src/main/java/org/apache/iceberg/BaseTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,6 @@ public ExpireSnapshots expireSnapshots() {
return BaseTransaction.this.expireSnapshots();
}

@Override
public Rollback rollback() {
throw new UnsupportedOperationException("Transaction tables do not support rollback");
}

@Override
public ManageSnapshots manageSnapshots() {
throw new UnsupportedOperationException("Transaction tables do not support managing snapshots");
Expand Down
39 changes: 0 additions & 39 deletions core/src/main/java/org/apache/iceberg/RollbackToSnapshot.java

This file was deleted.

5 changes: 0 additions & 5 deletions core/src/main/java/org/apache/iceberg/SerializableTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,6 @@ public ExpireSnapshots expireSnapshots() {
throw new UnsupportedOperationException(errorMsg("expireSnapshots"));
}

@Override
public Rollback rollback() {
throw new UnsupportedOperationException(errorMsg("rollback"));
}

@Override
public ManageSnapshots manageSnapshots() {
throw new UnsupportedOperationException(errorMsg("manageSnapshots"));
Expand Down