forked from Snowflake-Labs/terraform-provider-snowflake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Pass file_format values as-is in external table configuration
Common use of FILE_FORMAT under CREATE EXTERNAL TABLE includes specifying a previously created format name (FORMAT_NAME = 'NAME') or the various type options (TYPE=CSV FIELD_DELIMITER='|'). Both of these usage require defining string literals with the single quote character (') that should not be escaped. This change removes the escaping of single quotes performed for the file_format values. Some examples have also been added to the field documentation to make it easier to understand how values need to be passed to external tables. Testing: - Modified unit tests to exercise passing of typical file format values - Ran 'make test' to confirm existing tests continue to pass - Attempted an external table creation on a personal account with the changes included and observed it to execute a successful SQL Fixes Snowflake-Labs#1046
- Loading branch information
1 parent
fc3a8c2
commit b34105b
Showing
5 changed files
with
12 additions
and
11 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