-
Notifications
You must be signed in to change notification settings - Fork 905
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
Plan for Renaming DataSet to Dataset #2740
Comments
More:
And I agree, the priority should be to not show |
Not sure the way of suppressing warnings is right... >>> from kedro.io import MemoryDataSet
>>> from kedro.io.memory_dataset import MemoryDataSet
<stdin>:1: DeprecationWarning: 'MemoryDataSet' has been renamed to 'MemoryDataset', and the alias will be removed in Kedro 0.19.0
>>> We should still show It's annoying, but there's definitely precedent for still showing warnings, even when the user can't control them (like all the numpy warnings because of what libraries that use numpy do). Let me think if there's something better, but I think the lesser of two evils is to raise the warnings. |
@deepyaman sorry, I clarify - I was not advocating to suppress the |
Understood; so are we saying we can undo the suppression in |
pip standardizes non-lowercase extras, so this would be a nice change for consistency, but it's not strictly necessary/high priority. |
At the moment, it seems like kedro itself is triggering its own DeprecationWarning: For example, the (and similarly for other renamed This does not seem like a desirable behaviour… Or am I missing something? |
Relevant: kedro-org/kedro-plugins#313 |
I do not think these 2 issues are the same. One has to do with Kedro's import order (which triggers warnings when using custom classes), and the other has to do with the fact that current codebase (as of a month ago) was attempting to load both new and old class names, triggering a DeprecationWarning that users could not do anything about. |
Ah, thanks for the clarification @zedrdave, I read too fast 👍🏽 |
Closing this in favour of #2129 which is the full list of tasks for renaming assuming that datasets have by that point been removed from the core Kedro project. |
Background
This is a parent issue to document what've been done and what more to be done. This refactoring isn't simple as just changing the name of the class, and the success of this require coordination of dev and marketing. As this also affect various things (kedro.org, blogs for new Dataset contributions)
Done:
DataSet
use in class names #2500 is the main effort renaming everything fromDataSet
->Dataset
exceptAbstractDataSet
__getattr__
#2673, Quote class names inDeprecationWarning
messages #2706 are the effort enhancing the Deprecation warning show up but not everywhere.DeprecatedClassMeta
in favor ofgetattr
#2724 attempts to improve it further with a modern Pythonic way to deprecate classes.Ongoing:
DataSet
->Dataset
mentions in the markdown docsAbstractDataSet
->AbstractDataset
Things that are missing
.rst
files inkedro
kedro/docs/source/kedro.extras.datasets.rst
Line 4 in 6e5e4e1
extra
install withDataset
as well?kedro/setup.py
Lines 44 to 50 in 6e5e4e1
kedro-datasets
(is this needed or we release theDataset
version as a breaking change?) I think we need to communicate this and have a better plan. See Replace "DataSet" with "Dataset" in Kedro-Datasets #2751.Questions:
Deprecation
warnings inkedro
butkedro-datasets
are still usingDataSet
. Particular for users usingkedro-datasets
already, it may resulted in hybridDataSet
andDataset
in theircatalog.yml
@deepyamanThe text was updated successfully, but these errors were encountered: