-
Notifications
You must be signed in to change notification settings - Fork 3k
Exception on encryption key altering #14723
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
|
cc @huaxingao |
| && !Objects.equals( | ||
| base.properties().get(TableProperties.ENCRYPTION_TABLE_KEY), | ||
| metadata.properties().get(TableProperties.ENCRYPTION_TABLE_KEY))) { | ||
| throw new RuntimeException("Cannot modify key in encrypted table"); |
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.
should this be IllegalState / IllegalArgs exception ?
| base.properties().get(TableProperties.ENCRYPTION_TABLE_KEY), | ||
| metadata.properties().get(TableProperties.ENCRYPTION_TABLE_KEY))) { |
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.
IIUC, this now means table REPLACEs must have the same key property as before (+ you can't add a key when you replace).
Makes sense to me. WDYT about adding a test case to document that?
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.
sure, will appreciated if you'd add it in 14659 or 13225.
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 @ggershinsky for the PR! Thanks @singhpk234 @smaheshwar-pltr for the review! |
No description provided.