Skip to content
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

[SPARK-50665][SQL] Substitute LocalRelation with ComparableLocalRelation in NormalizePlan #49287

Conversation

vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented Dec 24, 2024

What changes were proposed in this pull request?

Substitute LocalRelation with ComparableLocalRelation in NormalizePlan.

ComparableLocalRelation has Seq[Seq[Expression]] instead of Seq[InternalRow]. The conversion happens through Literals.

Why are the changes needed?

LocalRelation's data field is incomparable if it contains maps, because ArrayBasedMapData doesn't define equals: #13847

Does this PR introduce any user-facing change?

No. This is to compare logical plans in the single-pass Analyzer.

How was this patch tested?

N/A

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

copilot.nvim.

@github-actions github-actions bot added the SQL label Dec 24, 2024
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/normalize-local-relation branch from 1d35601 to be2287d Compare December 25, 2024 07:38
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/normalize-local-relation branch from be2287d to da832da Compare December 25, 2024 16:14
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 2475b35 Dec 26, 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.

2 participants