-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql/schemachanger: extend metadata updater to support for updating zone configs #83804
Conversation
3b2f5b6
to
3dd75b3
Compare
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.
after you remove the unused codec
Reviewed 20 of 20 files at r1, 17 of 17 files at r2.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @dt and @fqazi)
pkg/sql/descmetadata/metadata_updater.go
line 46 at r1 (raw file):
descriptors *descs.Collection cacheEnabled bool codec keys.SQLCodec
Is this used anymore?
Previously, there was no way for the declarative schema changer to set zone configs without invoking into sql, which would lead to a circular dependency. These changes add an interface for allow the declarative schema changes to issue zone config updates via the MetadataUpdater. Release note: None
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.
@ajwerner TFTR!
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @ajwerner and @dt)
pkg/sql/descmetadata/metadata_updater.go
line 46 at r1 (raw file):
Previously, ajwerner wrote…
Is this used anymore?
Done.
Previously, the code to update the zone configs was separate between the declarative schema changer and the legacy schema changer. This was inadequate because we have a opportunity to share logic here. To address this the logic to update and delete zone configurations is now shared. Release note: None
bors r+ |
Build succeeded: |
This PR will extend the metadata updater to first support updating zone config, and next adopt
this infrastructure inside the existing zone config code.