-
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: Forbid setting of zone config for non physical tables #60592
Conversation
Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR. My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI. I was unable to automatically find a reviewer. You can try CCing one of the following members:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
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! I have some improvements to the rror messaging.
cf24056
to
f8d348b
Compare
Thank you for updating your pull request. My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
pkg/sql/set_zone_config.go
Outdated
@@ -342,6 +342,12 @@ func (n *setZoneConfigNode) startExec(params runParams) error { | |||
return err | |||
} | |||
|
|||
// If the table descriptor is resolved but is not a | |||
// physical table then return an error |
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.
super nit: this needs a full stop (.) at the end!
f8d348b
to
d174458
Compare
317a001
to
7df513c
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.
thanks!
bors r+
Build failed: |
Fixes cockroachdb#57478. Release note (sql change): Setting of zone configs for non physical tables is now forbidden .
7df513c
to
49efdb5
Compare
The test TestDropPhysicalTableGC involves setting up zone config for a view and since we are restricting that here so I think the test case is failing . What should we do here ? cc @otan |
i've pushed a fix. we should not apply the zone config the test attempts to set up if it's a view! |
bors r+ |
Build succeeded: |
Fixes #57478
Release note (sql change): Setting of zone configs for non physical tables is
now forbidden .