Skip to content

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