-
Notifications
You must be signed in to change notification settings - Fork 910
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
Dataset load
/ save
method cannot take arguments
#4346
Comments
Yeah this is a no brainer |
This seems more like a feature request than a bug? I don't think this has ever been supported.
Not sure I understand why. By passing args that are a property of the dataset to the save or load method, you're breaking the abstraction Kedro provides. |
Agree on the labelling, but aren't you extending rather than breaking this? |
I haven't tested, but I think this is always supported. The way that framework invoke dataset is usually via something similar: result = dataset.load() So framework is not aware of any extra argument |
Description
Context
Usually dataset use class attribute, i.e.
self.load_args
for passing argument toload
method. This is fine when using the full Kedro framework with YAML, but it's not convenient when developing interactively. For example I want to dodataset.save(filepath=xyz)
to override the settings.Expected Result
Whether or not the load/save argument should be available for interactive use is a separate topic, if I create the method that takes an argument, it should work. In addition, the stacktrace does not give any useful information which is confusing.
Your Environment
pip show kedro
orkedro -V
): 0.19.9python -V
): 3.11The text was updated successfully, but these errors were encountered: