-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
78997: sql: ignore non-existent columns when injecting stats r=mgartner a=mgartner Previously, an `ALTER TABLE ... INJECT STATS` command would return an error if the given stats JSON included any columns that were not present in the table descriptor. Statistics in statement bundles often include dropped columns, so reproducing issues with a bundle required tediously removing stats for these columns. This commit changes the stats injection behavior so that a notice is issued for stats with non-existent columns rather than an error. Any stats for existing columns will be injected successfully. Informs #68184 Release note (sql change): `ALTER TABLE ... INJECT STATISTICS ...` will now issue notices when the given statistics JSON includes non-existent columns, rather than resulting in an error. Any statistics in the JSON for existing columns will be injected successfully. Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
2 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