-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a snowflake load options #1516
Conversation
Codecov ReportBase: 94.00% // Head: 94.03% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1516 +/- ##
==========================================
+ Coverage 94.00% 94.03% +0.03%
==========================================
Files 89 89
Lines 4368 4390 +22
Branches 432 438 +6
==========================================
+ Hits 4106 4128 +22
Misses 178 178
Partials 84 84
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to add one example in our docs? for example how can users set file_format (RECORD_DELIMITER in case of CSV) using the SnowflakeLoadOptions file_options param?
…oad_options/snowflake_load_options
…oad_options/snowflake_load_options
@pankajastro I've created a ticket for wider documentation around LoadOptions. I don't want to hold up the 1.4 release over this so I think it's fine to do a more thorough job here. #1556 |
# Description ## What is the current behavior? The current behavior for loading data to Snowflake is to depend on `native_kwargs`, which are loosely defined and lack type safety. There is also no way to specify `FILE_FORMAT` options in Snowflake, which can block users from being able to load their data. ## What is the new behavior? This PR introduces a `SnowflakeLoadOptions` class that contains `file_format_options` and `copy_options` fields. These fields allow users to specify the necessary arguments to correctly load their data. ## Does this introduce a breaking change? No, this does not introduce a breaking change. ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
Description
What is the current behavior?
The current behavior for loading data to Snowflake is to depend on
native_kwargs
, which are loosely defined and lack type safety. There is also no way to specifyFILE_FORMAT
options in Snowflake, which can block users from being able to load their data.What is the new behavior?
This PR introduces a
SnowflakeLoadOptions
class that containsfile_format_options
andcopy_options
fields. These fields allow users to specify the necessary arguments to correctly load their data.Does this introduce a breaking change?
No, this does not introduce a breaking change.
Checklist