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

   ### What changes were proposed in this pull request?
   In this PR I propose to make `ResolvedCollation` evaluable. By making 
`ResolvedCollation` evaluable, it can now pass the `canEvaluateWithinJoin` 
check, allowing the optimizer to use efficient hash joins for queries with 
inline COLLATE in join conditions (before this change we would fallback to 
`BroadcastNestedLoopJoin`).
   
   ### Why are the changes needed?
   To improve performance of specific queries (see added tests).
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Added tests.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


-- 
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