You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql/schemachanger: adopt schema_locked by default in declarative tests
Previously, there were individual tests for confirming if schema_locked
worked correctly in the declarative schema changer. This patch flips
create_table_with_schema_locked and update tests to handle this.
Specifically it does the following:
1) All tables are created as schema_locked in the declarative schema
changer tests
2) All setup statements are now run via the declarative schema changer
so that schema_locked is almost never manually toggled
3) Updates all test outputs to expected schema_locked
Informs: #129694
Release note: None
Copy file name to clipboardExpand all lines: pkg/ccl/schemachangerccl/testdata/end_to_end/add_column_regional_by_row/add_column_regional_by_row.explain
+29-14
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,10 @@ Schema change plan for ALTER TABLE ‹multiregion_db›.‹public›.‹table_re
Copy file name to clipboardExpand all lines: pkg/ccl/schemachangerccl/testdata/end_to_end/add_column_regional_by_row/add_column_regional_by_row.explain_shape
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,4 +18,4 @@ Schema change plan for ALTER TABLE ‹multiregion_db›.‹public›.‹table_re
18
18
├── execute 1 system table mutations transaction
19
19
├── validate UNIQUE constraint backed by index table_regional_by_row_pkey+ in relation table_regional_by_row
20
20
├── validate NOT NULL constraint on column w+ in index table_regional_by_row_pkey+ in relation table_regional_by_row
0 commit comments