Skip to content

Conversation

@ebyhr
Copy link
Contributor

@ebyhr ebyhr commented Nov 16, 2025

Relates to #14488 and #5591

Add rollbackTo(int schemaId) method to UpdateSchema, and use it from Spark rollback_to_snapshot and rollback_to_timestamp procedures when a new parameter rollback_schema is enabled.

Comment on lines +670 to +672
default UpdateSchema rollbackTo(int schemaId) {
throw new UnsupportedOperationException();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per this particular comment : #5591 (comment)

Seems like its intention not to rollback to prev schema, any reason why it ok to do it now ?

It has a possible mitigation for undelete with required column by read defaults mentioned, any reason why this over that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants