Skip to content
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

Deprecate ds.lazy() since Dataset is lazy already #33812

Merged
merged 7 commits into from
Mar 29, 2023
4 changes: 4 additions & 0 deletions python/ray/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4131,6 +4131,10 @@ def get_internal_block_refs(self) -> List[ObjectRef[Block]]:
self._synchronize_progress_bar()
return blocks

@Deprecated(
message="Dataset is lazy by default, so this conversion call is no longer "
"needed and this API will be removed in future release"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits (grammar):

  • "Datasets is lazy ..."
  • "in a future release"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done (the Dataset here is referring to this class not the library we provide, so incline to keep it as Dataset).

)
def lazy(self) -> "Dataset[T]":
"""Enable lazy evaluation.

Expand Down