Skip to content

Conversation

@simeetnayan81
Copy link
Contributor

@simeetnayan81 simeetnayan81 commented Dec 7, 2025

Description

This is a follow-up PR after: #58915 for changing the function name from completed() to has_completed() in the class PhycicalOperator. This is in-line with our discussions with @bveeramani here: #58915 (review). This is done to make it clear that the method doesn't modify state and has no side effects.

Related issues

#58884

Additional information

Just updated the completed() and all it's references in other classes and tests.

@simeetnayan81 simeetnayan81 requested review from a team as code owners December 7, 2025 05:11
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to rename the PhysicalOperator.completed() method to has_completed() for clarity, along with updating all its call sites. The changes are extensive and cover many files, which is great. I've reviewed the changes and they are mostly correct. However, I found one instance in a subclass where the method was overridden but not renamed, which could lead to incorrect behavior. Please see my specific comment for details.

@ray-gardener ray-gardener bot added data Ray Data-related issues community-contribution Contributed by the community labels Dec 7, 2025
Copy link
Member

@bveeramani bveeramani left a comment

Choose a reason for hiding this comment

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

Nice! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community data Ray Data-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants