-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workload/schemachange: update and disable
ALTER TYPE DROP VALUE
Previously, `ALTER TYPE DROP VALUE` was using the procedural generation that is most common in this workload. The desire to add support UDFs required revisiting the implement as referenced enum values cannot be dropped. Unfortunately, there is not a straightforward way to determine if a specific enum is being referenced by other descriptors (namely default expressions for columns and UDFs). After the initial update and a few testing rounds with UDF support, a bug between enums and UDFs was discovered. (See #114844 for details). This commit upgrades the implementation of `ALTER TYPE DROP VALUE` to utilize the `Generate` helper and dodge cases of referenced enum values. Due to the aforementioned bug and another outstanding flake, this commit also disabled `ALTER TYPE DROP VALUE` to prevent further flakes an noise. Epic: CRDB-19168 Informs: #113859, #114844 Release note: None
- Loading branch information
Showing
3 changed files
with
79 additions
and
34 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