ebyhr commented on code in PR #14600:
URL: https://github.com/apache/iceberg/pull/14600#discussion_r2533026840


##########
api/src/main/java/org/apache/iceberg/UpdateSchema.java:
##########
@@ -659,4 +659,15 @@ default UpdateSchema setIdentifierFields(String... names) {
   default UpdateSchema caseSensitive(boolean caseSensitive) {
     throw new UnsupportedOperationException();
   }
+
+  /**
+   * Rollback table's schema to a specific {@link Schema} identified by id.
+   *
+   * @param schemaId schema id to roll back table to.
+   * @return this for method chaining
+   * @throws IllegalArgumentException If the table has no schema with the 
given id
+   */
+  default UpdateSchema rollbackTo(int schemaId) {
+    throw new UnsupportedOperationException();
+  }

Review Comment:
   As far as I know, the situation hasn't changed since #5591. That's why the 
option is disabled by default in the Spark procedures in this PR.
   
   This is essentially an initial exploration of whether we can offer a schema 
rollback option. 



-- 
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]

Reply via email to