-
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.
Previously, the EXPLAIN (DDL, STAGES) and EXPLAIN (DDL, DEPS) statements were printing graphviz URLs to help engineers during the development of the declarative schema changer. Now that the declarative schema changer is going live, the audience for EXPLAIN (DDL) changes to become the users. The graphviz URLs were, at any rate, not very useful for schema changes involving many objects, due to limitations in the rendering engine. This commit gets rid of the STAGES and DEPS flags to provide a unified plan which is similar to the data-driven test output in the scplan package. The VERBOSE flag can now be used to render a superset of the information in the default rendering. Touches #77158. Release note (sql change): EXPLAIN (DDL), when invoked on statements supported by the declarative schema changer, prints a plan of what the schema changer will do. This can be useful for the user to anticipate the complexity of a schema change (anything involving Backfill or Validation operations might be slow to run). This can be useful for troubleshooting. EXPLAIN (DDL, VERBOSE) produces a more detailed plan.
- Loading branch information
Marius Posta
committed
Apr 11, 2022
1 parent
6d0d912
commit 00a868c
Showing
12 changed files
with
1,005 additions
and
87 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
619 changes: 610 additions & 9 deletions
619
pkg/sql/logictest/testdata/logic_test/new_schema_changer
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
Oops, something went wrong.