Skip to content

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

Merged
ericl merged 1 commit into
ray-project:releases/2.4.0from
ericl:pick-materialize
Apr 8, 2023
Merged

[pick] [data] Rename .cache() to .materialize() (#34169)#34184
ericl merged 1 commit into
ray-project:releases/2.4.0from
ericl:pick-materialize

Conversation

@ericl

@ericl ericl commented Apr 8, 2023

Copy link
Copy Markdown
Contributor

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