-
Notifications
You must be signed in to change notification settings - Fork 915
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
Seems like the rename from class_obj to dataset_type wasn't complete #3369
Conversation
Signed-off-by: Merel Theisen <[email protected]>
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.
Do you have a case that I can reproduce the error? I am surprised no tests catch the error.
This may be a bug for an edge case, class_obj
was refactor into two different variables class_obj
and dataset_type
, so it's not just a rename. At some point class_obj
is just str
but then get recast as an object, so the refactoring keep them separately to make this clear.
I am probably missing an if
somewhere but I can't see it clearly. It should be an easy fix if I have an example.
@noklam I found the issue when I was running the dataset tests against the |
For the record, I can reproduce the error on kedro-datasets test
It appears that from the test we expect I found this from PartitionDataSet , which is more explicit about what type can be.
However, currently we actually testing d), which is:
Is this an accident that we allow non-string type? We can either:
|
Close in favor of #3400 |
Closing in favour of #3400 |
Description
While working with datasets and using an environment where I had the kedro develop version installed I ran into an issue: "UnboundLocalError: cannot access local variable 'class_obj' where it is not associated with a value"
I think this happened because the rename done from
class_obj
todataset_type
in #3272 wasn't completely finished.Development notes
Renamed all occurrences of
class_obj
inparse_dataset_definition
todataset_type
.Developer Certificate of Origin
We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a
Signed-off-by
line in the commit message. See our wiki for guidance.If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.
Checklist
RELEASE.md
file