-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: remove remaining add column limitations for declarative schema changer #80545
Comments
Thanks for filing this and collecting all the known odds and ends. Do we also need to fall back to the legacy schema changer for ON UPDATE in addition to DEFAULT? |
Yes that's true for all expression types let me fix the TODO @postamar |
76983: sql/schemachanger: enable add column by default in declarative schema changer r=fqazi a=fqazi These changes will enable add column by default in the declarative schema changer and the following fixes: 1. Add support for retrying schema changes when retriable errors are encountered 2. Add support for refreshing stats during declarative schema changes 3. Block add column when cross-database references are observed in the declarative schema changer 4. Block implicit record types inside expressions for the declarative schema changer 5. Add schema change-related event log entries 6. Properly combine multiple declarative schema change operations inside CTEs, which is required for support geometry related builtins that add columns 7. Enforce schema usage related privileges in the declarative schema changer 8. Add add column related telemetry 9. Generate appropriate errors when a newly added column conflicts with a system column 10. Support empty column family names 11. Add columns in the user-specified order inside the declarative schema changer 12. Enforce constraints when adding new columns, specifically detecting if default values will violate them Along with the following known issues and limitations (tracked by issue: #80545) 1. Legacy schema changer will be used whenever serial and generated columns are observed. 2. Regional by row tables will default to the legacy schema changer since we are missing proper support for updating zone configs 3. Columns with the unique constraint will default to the legacy schema changer 4. Default expressions using sequences will default to the legacy schema changer 5. A number of tests cases depending on the MVCC backfiller are using the legacy schema changer for now 81077: ui: update dates to 24h UTC r=maryliag a=maryliag This commit updates all dates to use a 24h format in UTC Fixes #78442 Release note (ui change): Update all dates to use 24h format in UTC 81371: tree: extend disallow_imports_test r=ajwerner a=otan Now blocking roachpb and util/log. Release note: None 81381: bazel: augment `disallowed_imports_test` to allow disallowing `c-deps` r=ajwerner a=rickystewart Due to bitrot some of these assertions are already failing. I've filed the follow-up bugs #81375, #81378, and #81380 for these cases. I also replaced the `VerifyNoImports` test used by a few packages with `disallowed_imports_test`. Release note: None Co-authored-by: Faizan Qazi <faizan@cockroachlabs.com> Co-authored-by: Marylia Gutierrez <marylia@cockroachlabs.com> Co-authored-by: Oliver Tan <otan@cockroachlabs.com> Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com>
I've unassigned myself considering that I'm very unlikely to close this before going on leave. I think I assigned myself this one in the first place because I was interested in owning the overall story. Perhaps the list in the issue description needs some grooming, I haven't checked. |
The declarative schema changer is currently disabled when adding columns in the following scenarios:
REFERENCES
foreign key constraintsJira issue: CRDB-15351
The text was updated successfully, but these errors were encountered: