-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-29499][CORE][PYSPARK] Add mapPartitionsWithIndex for RDDBarrier #26148
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
|
Hi @jiangxb1987, could you help to review this? |
|
thanks @huaxingao for the review. The comments have addressed. |
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.
sounds good, also cc @mengxr
|
LGTM |
|
LGTM |
|
Retest this please. |
|
ok to test |
|
Test build #112524 has finished for PR 26148 at commit
|
|
Thanks, merged to master! |
|
thanks all. |
What changes were proposed in this pull request?
Add mapPartitionsWithIndex for RDDBarrier.
Why are the changes needed?
There is only one method in
RDDBarrier. We often use the partition index as a label for the current partition. We need to get the index fromTaskContextindex in the method ofmapPartitionswhich is not convenient.Does this PR introduce any user-facing change?
No
How was this patch tested?
New UT.