Skip to content

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

Closed
vladimirg-db wants to merge 1 commit into
apache:masterfrom
vladimirg-db:vladimirg-db/normalize-local-relation
Closed

[SPARK-50665][SQL] Substitute LocalRelation with ComparableLocalRelation in NormalizePlan#49287
vladimirg-db wants to merge 1 commit into
apache:masterfrom
vladimirg-db:vladimirg-db/normalize-local-relation

Conversation

@vladimirg-db

@vladimirg-dbvladimirg-db commented Dec 24, 2024

Copy link
Copy Markdown
Contributor

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.

@vladimirg-db
vladimirg-dbforce-pushed the vladimirg-db/normalize-local-relation branch from 1d35601 to be2287dCompareDecember 25, 2024 07:38
@vladimirg-db
vladimirg-dbforce-pushed the vladimirg-db/normalize-local-relation branch from be2287d to da832daCompareDecember 25, 2024 16:14
@cloud-fan

Copy link
Copy Markdown
Contributor

thanks, merging to master!

Sign up for freeto 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

@vladimirg-db@cloud-fan