Support infer_schema for CSV and inline file formats in Snowflake - #373
Open
monti-python wants to merge 12 commits into
Open
Support infer_schema for CSV and inline file formats in Snowflake#373monti-python wants to merge 12 commits into
infer_schema for CSV and inline file formats in Snowflake#373monti-python wants to merge 12 commits into
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 PR has been marked as Stale because it has been open with no activity as of late. If you would like the PR to remain open, please comment on the PR or else it will be closed in 7 days. |
monti-python
force-pushed
the
fix_schema_inference_issues
branch
from
June 11, 2026 23:03
0e15711 to
2c2586f
Compare
Author
|
I'd appreciate your feedback on this one @jeremyyeo @dataders @b-per |
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_casetoFalse(convert inferred columns toquote: true)Checklist