Skip to content

[SPARK-51228][SQL] Introduce subquery normalization to NormalizePlan#49970

Closed
vladimirg-db wants to merge 1 commit intoapache:masterfrom
vladimirg-db:vladimirg-db/normalize-subqueries-as-well
Closed

[SPARK-51228][SQL] Introduce subquery normalization to NormalizePlan#49970
vladimirg-db wants to merge 1 commit intoapache:masterfrom
vladimirg-db:vladimirg-db/normalize-subqueries-as-well

Conversation

@vladimirg-db
Copy link
Copy Markdown
Contributor

@vladimirg-db vladimirg-db commented Feb 16, 2025

What changes were proposed in this pull request?

Introduce subquery normalization to NormalizePlan.

Also, perform bottom-up normalization for plans - predicate children have to be normalized first, because they are reordered by hashCode() value.

Why are the changes needed?

This is important for single-pass Analyzer to correctly compare plans with In/Exists/Scalar subqueries.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

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

No.

@github-actions github-actions bot added the SQL label Feb 16, 2025
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/normalize-subqueries-as-well branch from 17eee73 to e7b7a1c Compare February 16, 2025 11:19
@cloud-fan
Copy link
Copy Markdown
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 8a75e12 Feb 17, 2025
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.

2 participants