-
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: make partition names index-scoped, not table-scoped #20880
Comments
Since we have a way of manipulating partitions now in SQL, are there other things that depend on partitions having duplicate names across different indexes? |
I noticed that the Example:
Once partition names aren't unique, users will instead need to run
|
I also expect we'll want to remove the deprecated |
I removed the "cockroach zone" commands, which have been deprecated since 19.1. This will facilitate some of the zone usability improvements we are making for 19.2. I left the commands there but they now return an error with the equivalent SQL command. Refers cockroachdb#20880 Release note (cli change): Removed the deprecated "cockroach zone" CLI commands. Please use the equivalent "SHOW ZONE" and "CONFIGURE ZONE" commands in a SQL client.
I removed the "cockroach zone" commands, which have been deprecated since 19.1. This will facilitate some of the zone usability improvements we are making for 19.2. I left the commands there but they now return an error with the equivalent SQL command. Refers cockroachdb#20880 Release note (cli change): Removed the deprecated "cockroach zone" CLI commands. Please use the equivalent "SHOW ZONE" and "CONFIGURE ZONE" commands in a SQL client.
I removed the "cockroach zone" commands, which have been deprecated since 19.1. This will facilitate some of the zone usability improvements we are making for 19.2. I left the commands there but they now return an error with the equivalent SQL command. Refers cockroachdb#20880 Release note (cli change): Removed the deprecated "cockroach zone" CLI commands. Please use the equivalent "SHOW ZONE" and "CONFIGURE ZONE" commands in a SQL client.
39177: cli: remove deprecated "zone" commands r=solongordon a=solongordon I removed the "cockroach zone" commands, which have been deprecated since 19.1. This will facilitate some of the zone usability improvements we are making for 19.2. I left the commands there but they now return an error with the equivalent SQL command. Refers #20880 Release note (cli change): Removed the deprecated "cockroach zone" CLI commands. Please use the equivalent "SHOW ZONE" and "CONFIGURE ZONE" commands in a SQL client. Co-authored-by: Solon Gordon <solon@cockroachlabs.com>
Fixed by #39332. |
Users are likely to be confused by the fact that partition names cannot be reused across indexes of the same table.
This was somewhat solved with a better error message, which tells you which other index is already using the name.
Still, the only reason that partition names are table scoped is because there's no good way to refer to an index-scoped name from the CLI. Right now,
unambiguously means database "a", table "b", and partition "c". If partitions become index-scoped, you'll be required to instead say:
This raises an annoying question: is
a.b@primary.c
different froma.b.c
? Shoulda.b@index.c
inherit froma.b.c
?Some of these questions will be solved when we ditch the zone CLI for the SQL zone config interface, so holding off until that interface stabilizes.
The text was updated successfully, but these errors were encountered: