-
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: setting zone configs for non-materialized views should be forbidden #57478
Comments
Hi @rafiss can I take this one ? |
@naivcit Yes, thank you! We would appreciate your contribution. to get started, look at |
hi,@naivcit have you already started working on this? May I take it? |
Hey @jyz0309 yeah I am already working on this , sorry, will post a PR soon . |
Fixes cockroachdb#57478. Release note (sql change): Setting of zone configs for non physical tables is now forbidden .
Release note (sql change): Setting of zone configs for non physical tables is now forbidden .
Fixes cockroachdb#57478. Release note (sql change): Setting of zone configs for non physical tables is now forbidden .
Originally posted by @lucy-zhang in #57147 (comment)
Description: It's currently possible to run
ALTER TABLE ... CONFIGURE ZONE
statements on views. Considering that zone configs are meant to describe the physical layout of the data in a table, it doesn't make sense to me either that executing such a statement be possible on a non-physical table.To reproduce:
I would instead expect an error like this:
Looking at https://github.com/cockroachdb/cockroach/blob/master/pkg/sql/set_zone_config.go nothing is there to indicate that this behaviour is allowed for a good reason so I'm tentatively filing this as a bug despite having only a superficial understanding of things. If it turns out that it's not a bug then perhaps adding a comment to that effect in that source file might be helpful.
The text was updated successfully, but these errors were encountered: