-
Notifications
You must be signed in to change notification settings - Fork 1.8k
#16994 Ensure CooperativeExec#maintains_input_order returns a Vec of the correct size #16995
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
Conversation
…ec of the correct size
|
@alamb this one might require a 49.0.1 😬 |
alamb
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.
Thanks @pepijnve
I have a suggestion on testing: #16994 (comment),
I added it to a "Maybe even 49.0.1" list on |
|
I added a number of invariant checks as suggested in #16994 (comment) |
Add checks that verify the length of the vectors returned by methods that need to return a value per child.
|
|
||
| /// Checks a set of invariants that apply to all ExecutionPlan implementations. | ||
| /// Returns an error if the given node does not conform. | ||
| pub fn check_default_invariants<P: ExecutionPlan + ?Sized>( |
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.
👍 this is a good one
alamb
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.
Thank you @pepijnve
|
Thanks again @pepijnve and @xudong963 |
…ec of the correct size (apache#16995) * apache#16994 Ensure CooperativeExec#maintains_input_order returns a Vec of the correct size * apache#16994 Extend default ExecutionPlan invariant checks Add checks that verify the length of the vectors returned by methods that need to return a value per child. (cherry picked from commit 2968331)
…the correct size (#16995) (#17068) * #16994 Ensure CooperativeExec#maintains_input_order returns a Vec of the correct size * #16994 Extend default ExecutionPlan invariant checks Add checks that verify the length of the vectors returned by methods that need to return a value per child. (cherry picked from commit 2968331)
…ec of the correct size (apache#16995) * apache#16994 Ensure CooperativeExec#maintains_input_order returns a Vec of the correct size * apache#16994 Extend default ExecutionPlan invariant checks Add checks that verify the length of the vectors returned by methods that need to return a value per child.
Which issue does this PR close?
CooperativeExecincorrectly implementsmaintains_input_order#16994.Rationale for this change
The initial implementation of
CooperativeExec#maintains_input_orderis not correct and is likely to return aVecwith the wrong size.What changes are included in this PR?
Update the implementation of
maintains_input_ordertovec![true; self.children().len()]sinceCooperativeExecdoes not modify input order in any way.Are these changes tested?
Still working on unit test(s) that demonstrate the problem.
Are there any user-facing changes?
No