Skip to content

Conversation

@cloud-fan
Copy link
Contributor

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

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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 .

@dongjoon-hyun
Copy link
Member

Could you fix more test failures, @cloud-fan ?

@cloud-fan
Copy link
Contributor Author

Since this touches golden files, I'd like to have one PR per branch to be safe.

@cloud-fan
Copy link
Contributor Author

thanks for the review, merging to 3.2!

cloud-fan added a commit that referenced this pull request Jun 10, 2022
…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]>
@cloud-fan cloud-fan closed this Jun 10, 2022
@dongjoon-hyun
Copy link
Member

Thank you, @cloud-fan . I also merged #36827 .
We need another PR for branch-3.3.

@allisonwang-db
Copy link
Contributor

Thanks @cloud-fan for the fix! Updated #36386

@dongjoon-hyun
Copy link
Member

Thank you, @allisonwang-db !

sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants