-
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.
62921: opt: fix internal error when calculating stats for mutation passthrough cols r=rytaft a=rytaft Prior to this commit, an attempt to calculate statistics for a passthrough column in a mutation would cause an error, since passthrough columns were inadvertently ignored by the `MapToInputCols` function. This commit fixes the problem by updating `MapToInputCols` so that it checks whether any of the given columns are in `PassthroughCols` before trying to map them to a table column. Fixes #62692 Release note (bug fix): Fixed an internal error that could occur during planning when a query used the output of an UPDATE's RETURNING clause, and one or more of the columns in the RETURNING clause were from a table specified in the FROM clause of the UPDATE (i.e., not from the table being updated). Co-authored-by: Rebecca Taft <[email protected]>
- Loading branch information
Showing
2 changed files
with
102 additions
and
3 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