-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: hide display of partitions on SHOW CREATE for REGIONAL BY ROW ta…
…bles This commit hides the partition zone configuration for REGIONAL BY ROW tables. This is achieved by the following: * Introduce a is_multi_region column for crdb_internal.create_statements * Introduce a builtin `crdb_internal.filter_multiregion_fields_from_zone_config_sql` which removes multi region zone config fields. * Filter the partition statements out from the SHOW CREATE TABLE delegate function. * Change REGIONAL BY ROW tests to read from SHOW PARTITIONS so that we can still see the zone configurations and partitions. Release justification: low risk change to new functionality Release note (sql change): Introduced a new is_multi_region column to crdb_internal.create_statements, which informs whether the database of the object is a multi-region database. Release note (sql change): Introduced a new built-in `crdb_internal.filter_multiregion_fields_from_zone_config_sql` which removes multi-region fields from a CONFIGURE ZONE statement.
- Loading branch information
Showing
16 changed files
with
2,357 additions
and
1,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,929 changes: 1,217 additions & 712 deletions
1,929
pkg/ccl/logictestccl/testdata/logic_test/alter_table_locality
Large diffs are not rendered by default.
Oops, something went wrong.
852 changes: 450 additions & 402 deletions
852
pkg/ccl/logictestccl/testdata/logic_test/multi_region_backup
Large diffs are not rendered by default.
Oops, something went wrong.
1,273 changes: 570 additions & 703 deletions
1,273
pkg/ccl/logictestccl/testdata/logic_test/regional_by_row
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters