-
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.
importccl: fail PGDUMP IMPORT if we see a UDT
In 21.1 we added `ignore_unsupported_statements` that ignored all statements that we didnt support while parsing the PGDUMP file. We don't support `CREATE TYPE` and its subsequent usage, and this currently causes a NPE. While we work on adding UDT support to PGDUMP we should make an exception to the ignore option and fail the import instead. This change also nils out the type resolver on the semaCtx that we use during import table creation. This ensures that we do not attempt to resolve UDTs but instead fail gracefully. IMPORT TABLE and bundle imports do not support UDTs and so this is an improvement over the NPEs import would hit prior to this patch. Release note (bug fix): IMPORT PGDUMP with a UDT would result in a nil pointer exception. This change makes it fail gracefully.
- Loading branch information
1 parent
4cdbb99
commit 01b50fa
Showing
5 changed files
with
46 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
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