-
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
Change load_options to list[LoadOptions] from LoadOptions #1540
Conversation
Codecov ReportBase: 94.06% // Head: 94.17% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1540 +/- ##
==========================================
+ Coverage 94.06% 94.17% +0.11%
==========================================
Files 89 89
Lines 4417 4450 +33
Branches 440 444 +4
==========================================
+ Hits 4155 4191 +36
+ Misses 178 174 -4
- Partials 84 85 +1
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.
I'll probably have more comments later but for now lets' address the first round of comments from @tatiana and I
46f2cd1
to
18659e0
Compare
for more information, see https://pre-commit.ci
18659e0
to
7b6cecb
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
# Description ## What is the current behavior? In load_file() we use multiple integrations with Pandas, and Databases at the same time. But We currently just have one parameter to pass in integration-specific parameters. closes: #1532 ## What is the new behavior? We have changed load_options params to List[LoadOptions] so that we can pass multiple integration parameters in a list. Passing multiple values to `load_options` leads to the problem of mapping. How do we know that PandasLoadOptions need to be passed to dataframe specific methods? We solved the mapping problem by having integration classes having `LOAD_OPTIONS_CLASS_NAME` parameter to store the `LoadOptions` subclass for that integration and initialize the File-type, File-location, and Database objects with the right LoadOption class. ## Does this introduce a breaking change? No, since we never released the `load_options` ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
# Description ## What is the current behavior? load_options exposed to the user in File location/type added in the following PR - #1540. Since it's a derived property and not something the user should set. Concerns load_options shouldn't be exposed to the end users in the File class. load_options is specific to load_file() and should not be part of File/Databases. closes: #1719 ## What is the new behavior? We added a getter/setter property on the File class such that the load_option interface is not exposed to the end user. ## Does this introduce a breaking change? Yes ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
# Description ## What is the current behavior? load_options exposed to the user in File location/type added in the following PR - #1540. Since it's a derived property and not something the user should set. Concerns load_options shouldn't be exposed to the end users in the File class. load_options is specific to load_file() and should not be part of File/Databases. closes: #1719 ## What is the new behavior? We added a getter/setter property on the File class such that the load_option interface is not exposed to the end user. ## Does this introduce a breaking change? Yes ### Checklist - [ ] Created tests which fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
Description
What is the current behavior?
In load_file() we use multiple integrations with Pandas, and Databases at the same time. But We currently just have one parameter to pass in integration-specific parameters.
closes: #1532
What is the new behavior?
We have changed load_options params to List[LoadOptions] so that we can pass multiple integration parameters in a list.
Passing multiple values to
load_options
leads to the problem of mapping. How do we know that PandasLoadOptions need to be passed to dataframe specific methods?We solved the mapping problem by having integration classes having
LOAD_OPTIONS_CLASS_NAME
parameter to store theLoadOptions
subclass for that integration and initialize the File-type, File-location, and Database objects with the right LoadOption class.Does this introduce a breaking change?
No, since we never released the
load_options
Checklist