-
Notifications
You must be signed in to change notification settings - Fork 36
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
MLFlow dataset with modern kedro dataset breaks #598
Comments
Can confirm, happens also with various other datasets 😢 Edit: Probably found the problematic line. In if getattr(super().save, "__savewrapped__", False): # modern dataset
super().save.__wrapped__(self, data)
else: # legacy dataset
super()._save(data) should be if getattr(super().save, "__wrapped__", False): # modern dataset
super().save.__wrapped__(self, data)
else: # legacy dataset
super()._save(data) |
(@deepyaman FYI) Hi, just to confirm, are you both using Not sure about your fix @stroblme, does it solve it for you? This looks like a bug but I'm afraid the problem is deeper than this unfortunately. I'll have a look very quick. |
@Galileo-Galilei , yes, this fixed it for me.
|
https://github.com/kedro-org/kedro/blob/0.19.7/kedro/io/core.py#L259 should set Trying to think through this, is it possible It's interesting that changing it to It will be hard for me to prioritize looking into this in the next few days, but let me see if I get a chance. |
Can you make a PR @stroblme ? I am on my phone so it's not easy but I can release it immediately if someone submits the PR |
@deepyaman it's intellectually interesting to understand why, but if the fix works, don't worry and don't bother wasting time to investigate unless you really want it ;) |
If want to go with this fix, I think it should be ideally: if hasattr(super().save, "__wrapped__"): # modern dataset
super().save.__wrapped__(self, data)
else: # legacy dataset
super()._save(data) (as |
Some follow up :
➡️ I release the fix and won't investigate more for now |
…atasets without private _load and _save (#598)
…atasets without private _load and _save (#598)
Description
Using mlflow datasets that wrap a modern dataset results in an error
Context
Cannot run the pipeline successfully. Breaks on saving the data (possibly on loading too?)
Steps to Reproduce
json.JSONDataset
withMLFlowArtifactDataset
Expected Result
Should save successfully.
Actual Result
Errors while trying to save on that dataset
Workaround
Experimented with changing
__savewrapped__
to__wrapped__
and it gets rid of the errorYour Environment
kedro
andkedro-mlflow
version used (pip show kedro
andpip show kedro-mlflow
): 0.19.9 and 0.13.1python -V
): 3.10.14Does the bug also happen with the last version on master?
Yes
The text was updated successfully, but these errors were encountered: