-
Notifications
You must be signed in to change notification settings - Fork 229
feat(iceberg): introduce remove schemas #1115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. cc @ZENOTME @liurenjie1024 @Fokko
@@ -482,6 +482,12 @@ pub enum TableUpdate { | |||
/// Snapshot id to remove partition statistics for. | |||
snapshot_id: i64, | |||
}, | |||
/// Remove schemas | |||
#[serde(rename_all = "kebab-case")] | |||
RemoveSchemas { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Li0k! LGTM!
PTAL @Xuanwo @liurenjie1024 , thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this change!
Which issue does this PR close?
What changes are included in this PR?
This PR introduces the capability to remove schemas to enable expire snapshot action operations.
https://github.com/apache/iceberg/blob/456bbe98b0b0982278a61af4c44d32e1c27417e2/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1177
https://github.com/apache/iceberg/blob/456bbe98b0b0982278a61af4c44d32e1c27417e2/core/src/main/java/org/apache/iceberg/RemoveSnapshots.java#L249
refer to risingwavelabs#20
Are these changes tested?