-
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: add support for
CREATE FUNCTION
This commit adds support for the `CREATE FUNCTION` DDL to the RSW. While the space for possible UDF incantations is quite large, this commit focused on permutations that are of interest to schema changes. That is to say, the body of the UDF does not have much, if any, variation but will be comprised of references to tables and UDTs. Unfortunately, the introduction of UDFs in the descriptor graph has aggravated an issue within `DROP SCHEMA CASCADE`. This commit contains attempts to correct said issues to no avail. It's possible that either the DSC or LSC are missing some logic for handling UDFs that contain references to UDTs. Prior to this commit, errors preventing the schema from being dropped would be thrown. After it, expected errors are not thrown appropriately despite the checks being hand verified for correctness. Epic: CRDB-19168 Informs: CRDB-3265 Release note: None
- Loading branch information
Showing
5 changed files
with
172 additions
and
69 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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