vladimirg-db opened a new pull request, #49287:
URL: https://github.com/apache/spark/pull/49287

   ### 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 `Literal`s.
   
   ### Why are the changes needed?
   
   `LocalRelation`'s data field is incomparable if it contains maps, because 
`ArrayBasedMapData` doesn't define `equals`: 
https://github.com/apache/spark/pull/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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to