-
Notifications
You must be signed in to change notification settings - Fork 7k
Change PhysicalOperator.completed() to has_completed() and update all… #59234
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
base: master
Are you sure you want to change the base?
Conversation
… it's references Signed-off-by: Simeet Nayan <[email protected]>
There was a problem hiding this 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.
Signed-off-by: Simeet Nayan <[email protected]>
bveeramani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thank you!
Signed-off-by: Simeet Nayan <[email protected]>
Description
This is a follow-up PR after: #58915 for changing the function name from
completed()tohas_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.