Uh oh!
There was an error while loading. Please reload this page.
[SPARK-47094][SQL][TEST][FOLLOWUP] SPJ : fix bucket reducer function - #47126
[SPARK-47094][SQL][TEST][FOLLOWUP] SPJ : fix bucket reducer function#47126himadripal wants to merge 1 commit into
Conversation
himadripal
commented
Jun 27, 2024
@szehon-ho please take a look. |
szehon-ho
left a comment
There was a problem hiding this comment.
Thanks , some preliminary comment.
As this is just fixing test transform, I think we should just add one minimum negative test for this (to assert no SPJ in this case)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
viirya
commented
Oct 19, 2024
So previously when it is reduced to 1, is it a correctness issue? Or just performance issue? |
Uh oh!
There was an error while loading. Please reload this page.
himadripal
commented
Oct 19, 2024
performance issue, if it reduces to 1, there will be only task doing the work. |
szehon-ho
commented
Oct 19, 2024
@viirya it seems it is a test transform, but good to have a good example |
viirya
commented
Oct 19, 2024
Oh okay, I didn't see it is test only code. |
8493934 to
b85847cComparehimadripal
commented
Oct 24, 2024
@viirya please take another look, |
viirya
commented
Oct 29, 2024
cc @huaxingao |
Uh oh!
There was an error while loading. Please reload this page.
remove newline
d24d1a0 to
e503341Comparehuaxingao
commented
Oct 30, 2024
Merged to master. Thanks @himadripal@szehon-ho@viirya |
dongjoon-hyun
commented
Oct 30, 2024
Thank you all. |
What changes were proposed in this pull request?
SPJ compatible bucket issue has an implementation of reducible function. This patch fixes the implementation and make it same as in apache iceberg one.
Why are the changes needed?
With this fix, incompatible number of buckets do not return 1 as GCD, hence the buckets do not reduce to 1 when it used in incompatible number of buckets.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
With unit tests
Was this patch authored or co-authored using generative AI tooling?
No.