Open noklam opened 5 days ago
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.
Yeah this is a no brainer
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?
This seems more like a feature request than a bug? I don't think this has ever been supported.
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 load
can take, but it does not prevent load
method takes extra argument in interactive flow. It is confusing because the error message does not give me any help. I am able to get around with it by actually using _load
instead of load
.
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.11