-
Notifications
You must be signed in to change notification settings - Fork 427
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 (#…
…1183) 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 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 to allow them to be specified without failing the query compilation. Some examples have also been added to the documentation to make it easier to understand how values for file_format need to be passed for external tables. Testing: - Modified unit tests to exercise passing of typical file format values - Ran 'make test' to confirm existing tests continue to pass - Setup a trial account, exported env-vars and ran 'make test-acceptance' and verified all tests passed - Attempted an external table creation on a personal account with the changes included through a local buildand observed it to execute a successful SQL. Tried with both FORMAT_NAME and FIELD_DELIMITER options with string literal values. Fixes #1046
- Loading branch information
1 parent
6c004a3
commit d3ad8a8
Showing
5 changed files
with
16 additions
and
14 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