forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because the inputs of a UNION or UNION ALL are run in parallel, it is not possible for either of them to be mutations. The right way to do this is to use WITH (above the union). The optimizer will have code to pull up mutations into top-level WITHs, but until then we want to disallow such queries from executing. This change adds a check for this condition in the execbuilder. Informs cockroachdb#40853. Release note (sql change): Mutations under UNION or UNION ALL are now disallowed; WITH should be used on top of the union operation instead. This restriction is temporary and will be lifted in a future release. Release justification: low-risk fix for high-severity bug (category 3).
- Loading branch information
1 parent
723aea6
commit a34d705
Showing
3 changed files
with
39 additions
and
6 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