-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-52944][CORE][TESTS][FOLLOWUP] Avoid hard-coding the checksum algorithm name #51675
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
@@ -70,7 +70,8 @@ class SortShuffleSuite extends ShuffleSuite with BeforeAndAfterAll { | |||
// Ensure that the shuffle actually created files that will need to be cleaned up | |||
val filesCreatedByShuffle = getAllFiles -- filesBeforeShuffle | |||
filesCreatedByShuffle.map(_.getName) should be( | |||
Set("shuffle_0_0_0.data", "shuffle_0_0_0.checksum.ADLER32", "shuffle_0_0_0.index")) | |||
Set("shuffle_0_0_0.data", s"shuffle_0_0_0.checksum.${conf.get(SHUFFLE_CHECKSUM_ALGORITHM)}", |
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.
cc @dongjoon-hyun FYI
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, LGTM. Thank you so much, @LuciferYang .
cc @peter-toth
Thanks @dongjoon-hyun |
After verification, I will also backport this PR to branch-4.0 to maintain consistency. |
…lgorithm name ### What changes were proposed in this pull request? This PR retrieves the shuffle checksum algorithm name via `conf.get(SHUFFLE_CHECKSUM_ALGORITHM)` to eliminate hard-coding. ### Why are the changes needed? Address apache#51654 (comment) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#51675 from LuciferYang/SPARK-52944-FOLLOWUP. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…lgorithm name ### What changes were proposed in this pull request? This PR retrieves the shuffle checksum algorithm name via `conf.get(SHUFFLE_CHECKSUM_ALGORITHM)` to eliminate hard-coding. ### Why are the changes needed? Address apache#51654 (comment) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#51675 from LuciferYang/SPARK-52944-FOLLOWUP. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…lgorithm name ### What changes were proposed in this pull request? This PR retrieves the shuffle checksum algorithm name via `conf.get(SHUFFLE_CHECKSUM_ALGORITHM)` to eliminate hard-coding. ### Why are the changes needed? Address #51654 (comment) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #51675 from LuciferYang/SPARK-52944-FOLLOWUP. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit afd595a) Signed-off-by: yangjie01 <yangjie01@baidu.com>
What changes were proposed in this pull request?
This PR retrieves the shuffle checksum algorithm name via
conf.get(SHUFFLE_CHECKSUM_ALGORITHM)
to eliminate hard-coding.Why are the changes needed?
Address #51654 (comment)
Does this PR introduce any user-facing change?
No
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No