-
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/schemachanger: copy ALTER TABLE .. SET TYPE pre-checks from legac…
…y to DSC This duplicates various pre-checks we have in the legacy schema changer's ALTER TABLE .. SET TYPE command to the declarative schema changer, which uses states from various schema changer elements. Additionally, it introduces more tests for validation-only type conversions. These conversions don't require data to be rewritten; instead, they validate existing rows against the new type. For example, changing from CHAR(20) to CHAR(10) requires ensuring each row is 10 characters or fewer. The actual implementation of validation-only type conversions in the DSC will be handled in a subsequent PR. Epic: CRDB-25314 Informs: #126516 Release note: None
- Loading branch information
Showing
7 changed files
with
470 additions
and
68 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
Oops, something went wrong.