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

[pick] [data] Rename .cache() to .materialize() (#34169) #34184

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Apr 8, 2023

Based on discussion with @c21 @jjyao , as well as the new "MaterializedDatastream" class name, materialize makes more sense as an action than cache. Furthermore, we don't need an is_cached method as the new type information suffices.

Why are these changes needed?

This picks #34169 into 2.4. We need to do this pick since this is a last minute rename of a new API in 2.4. Otherwise, we'd have to immediately deprecate the API in 2.5.

Based on discussion with @c21 @jjyao , as well as the new "MaterializedDatastream" class name, materialize makes more sense as an action than cache. Furthermore, we don't need an is_cached method as the new type information suffices.

We will have to pick a variation of this PR into 2.4 as well, which introduces the original fully_executed() -> cache() rename.
@ericl ericl merged commit c228832 into ray-project:releases/2.4.0 Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants