Support infer_schema for CSV and inline file formats in Snowflake#373
Open
monti-python wants to merge 6 commits intodbt-labs:mainfrom
Open
Support infer_schema for CSV and inline file formats in Snowflake#373monti-python wants to merge 6 commits intodbt-labs:mainfrom
infer_schema for CSV and inline file formats in Snowflake#373monti-python wants to merge 6 commits intodbt-labs:mainfrom
Conversation
Added a macro to parse file format options for Snowflake external tables and updated the create_external_table macro to utilize this new functionality.
Author
|
@jeremyyeo @dataders FYI Snowflake integration tests are failing due to authentication errors with your test account. Tests are running successfully in my own account though. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solves #254, #284, and #336
Description & motivation
Schema inference (
infer_schema: True) doesn't work neither for CSVs nor inline file formats. This is because:INFER_SCHEMA()Snowflake functionPARSE_HEADER = True)This PR solves both issues above and also does:
ignore_casetoFalseChecklist