forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scplan: remove hard-coded 1-op-edge constraint on statement phase
Previously, the declarative schema changer had this arbitrary constraint which enforced that each element could transition at most once towards its target during the statement phase(s) in the statement transaction. This commit removes this and relies on the two-version-invariant rules instead. To do so, this commit reintroduces the PreviousTransactionPrecedence dependency edge kind and expresses those rules using that instead of the PreviousStagePrecedence kind, which is now deprecated. Removing this limitation is necessary for the side-effects of CREATE statements to be visible inside the statement transaction. This change does not otherwise significantly alter the plans which are generated. Informs cockroachdb#104351. Informs cockroachdb#104123. Release note: None
- Loading branch information
Marius Posta
committed
Jun 14, 2023
1 parent
72f551a
commit 2d3e21b
Showing
274 changed files
with
5,764 additions
and
3,264 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
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
228 changes: 120 additions & 108 deletions
228
pkg/ccl/schemachangerccl/testdata/explain/drop_database_multiregion_primary_region
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
Oops, something went wrong.