-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Prevent repartitioning of certain operator's direct children (#1731) #1732
Changes from all commits
8c58b48
9cfe2ff
abb1e9d
c4c0a1c
e6e7b13
87da45d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -300,6 +300,11 @@ impl ExecutionPlan for LocalLimitExec { | |
_ => Statistics::default(), | ||
} | ||
} | ||
|
||
fn should_repartition_children(&self) -> bool { | ||
tustvold marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// No reason to repartition children as this node is just limiting each input partition. | ||
false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also fixed #423 I believe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As currently expressed this only prevent repartitioning of direct children, I think you need something more than that for sortedness as discussed on #424 |
||
} | ||
} | ||
|
||
/// Truncate a RecordBatch to maximum of n rows | ||
|
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.
I think this is a good improvement to the tests 👍