-
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.
sql: omit dropped columns from SHOW STATISTICS output
Fixes #76573 Previously, statistics on dropped columns were displayed in `SHOW STATISTICS [USING JSON]` output. This was inadequate because statement bundle scripts with `ALTER TABLE ... INJECT STATISTICS` statements, generated via `SHOW STATISTICS USING JSON` output, required manual editing in order to run successfully if the table in question had a dropped column. To address this, this patch omits printing of statistics involving dropped columns in `SHOW STATISTICS` output, including multicolumn statistics. Release note (bug fix): This fixes SHOW STATISTICS output so statistics involving dropped columns are not displayed.
- Loading branch information
Mark Sirek
committed
Jun 1, 2022
1 parent
97d0c6e
commit 70c3b24
Showing
2 changed files
with
127 additions
and
18 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