-
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.
58208: sql: fix crash when explaining a constrained virtual table scan r=RaduBerinde a=RaduBerinde When emitting `EXPLAIN (VERBOSE)` output, we use a callback to generate and format the physical spans; this callback currently crashes for virtual tables. Note that this code path is used when collecting statement diagnostics, which can lead to a severe situation. The fix is to always show the logical spans and use the callback only for physical tables. In addition, we add logic to catch panics inside emitExplain; unfortunately, it would not have helped here because the panic object was a bare string (and not an assertion error). Fixes #58193. Release note (bug fix): fixed a "column family 0 not found" crash caused by explaining or gathering statement diagnostics on certain queries involving virtual tables. Co-authored-by: Radu Berinde <[email protected]>
- Loading branch information
Showing
5 changed files
with
56 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
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