Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #46617 . Subquery expression has a bunch of correlation checks which need to match certain plan shapes. We broke this by leaving WithCTE in the plan for un-referenced CTE relations. This PR fixes the issue by skipping CTE plan nodes in correlated subquery expression checks.

Why are the changes needed?

bug fix

Does this PR introduce any user-facing change?

no bug is not released yet.

How was this patch tested?

new tests

Was this patch authored or co-authored using generative AI tooling?

no

@cloud-fan
Copy link
Contributor Author

cc @viirya

@github-actions github-actions bot added the SQL label Jun 4, 2024
@cloud-fan cloud-fan force-pushed the check branch 2 times, most recently from c45fc42 to cbb4c7e Compare June 5, 2024 17:00
@cloud-fan
Copy link
Contributor Author

thanks for the review, merging to master!

@cloud-fan cloud-fan closed this in d5c33c6 Jun 5, 2024
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.

3 participants