-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[flink] Make DPP distribute the splits fairly for flink #4348
Conversation
* then distribute the splits fairly. | ||
*/ | ||
public class DynamicPartitionPruningPreAssignSplitAssigner extends PreAssignSplitAssigner { | ||
public DynamicPartitionPruningPreAssignSplitAssigner( |
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.
add a blank line
.collect(Collectors.toList())); | ||
} | ||
|
||
private static boolean filter( |
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.
why static?
.collect(Collectors.toList())); | ||
} | ||
|
||
private static boolean filter( |
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.
Change DynamicPartitionPruningAssigner#filter to public static, and then delete DynamicPartitionPruningPreAssignSplitAssigner#filter?
.../org/apache/paimon/flink/source/assigners/DynamicPartitionPruningPreAssignSplitAssigner.java
Outdated
Show resolved
Hide resolved
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.
+1
Purpose
The existing DPP assigner implementation first assigns fairly and then assigns according to DPP, which may result in uneven splits for different tasks.