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.
opt: avoid using virtual columns that are being mutated
Previously, when schema changes involving dropping a virtual compute column were concurrently run with UPDATE/DELETE, we would encounter a panic inside the optimizer. Specifically, because mutated virtual columns would not have information populated. To address this, this patch similar to SELECT's, will skip these columns when evaluating DROP's/UPDATE's. Epic: none Release note (bug fix): Fixed a bug where concurrent UPDATE/DELETE while dropping a virtual computed column could fail with a panic.
- Loading branch information
Showing
3 changed files
with
53 additions
and
13 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