-
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: fix gist decoding in foreign DB
When a gist is exported and decoded in a foreign DB it should still decode w/o panic. If a table scan result columns are fed into a group by column the group by column code expects the result columns to be in tact and panics. Fix this by making fake "unknown" result columns so we can print the plan. Making this change led to an unintended change in gists_tpce, this is because the catalog was shared between the test files and I added a table. Fix this for the future by creating a new catalog for each file. But with this change the table ids encoded in the gists_tpce got smaller. Epic: None Fixes: #110964 Release note (bug fix): Fixed panic when decoding gist in DB without the table referred to by the gist.
- Loading branch information
Showing
4 changed files
with
57 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
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