-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[3.2][SPARK-39437][SQL][TEST] Normalize plan id separately in PlanStabilitySuite #36828
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
dongjoon-hyun
left a comment
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.
The patch itself looks good if CI passes.
We need this at branch-3.3 first before landing at branch-3.2, don't we? @cloud-fan .
|
Could you fix more test failures, @cloud-fan ? |
|
Since this touches golden files, I'd like to have one PR per branch to be safe. |
|
thanks for the review, merging to 3.2! |
…bilitySuite backport #36827 ### What changes were proposed in this pull request? In `PlanStabilitySuite`, we normalize expression IDs by matching `#\d+` in the explain string. However, this regex can match plan id in `Exchange` node as well, which will mess up the normalization if expression IDs and plan IDs overlap. This PR normalizes plan id separately in `PlanStabilitySuite`. ### Why are the changes needed? Make the plan golden file more stable. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A Closes #36828 from cloud-fan/test2. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
|
Thank you, @cloud-fan . I also merged #36827 . |
|
Thanks @cloud-fan for the fix! Updated #36386 |
|
Thank you, @allisonwang-db ! |
…bilitySuite backport apache#36827 ### What changes were proposed in this pull request? In `PlanStabilitySuite`, we normalize expression IDs by matching `#\d+` in the explain string. However, this regex can match plan id in `Exchange` node as well, which will mess up the normalization if expression IDs and plan IDs overlap. This PR normalizes plan id separately in `PlanStabilitySuite`. ### Why are the changes needed? Make the plan golden file more stable. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A Closes apache#36828 from cloud-fan/test2. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
backport #36827
What changes were proposed in this pull request?
In
PlanStabilitySuite, we normalize expression IDs by matching#\d+in the explain string. However, this regex can match plan id inExchangenode as well, which will mess up the normalization if expression IDs and plan IDs overlap.This PR normalizes plan id separately in
PlanStabilitySuite.Why are the changes needed?
Make the plan golden file more stable.
Does this PR introduce any user-facing change?
no
How was this patch tested?
N/A