wangyum opened a new pull request #35989: URL: https://github.com/apache/spark/pull/35989
### What changes were proposed in this pull request? This PR makes it avoid deduplication if the keys of the HashedRelation are unique. ### Why are the changes needed? Deduplication is not need if it is [`LongHashedRelation`](https://github.com/apache/spark/blob/8476c8b846ffd2622a6bcf1accf9fa55ffbdc0db/sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashedRelation.scala#L1062) or the keys of the [`UnsafeHashedRelation`](https://github.com/apache/spark/blob/8476c8b846ffd2622a6bcf1accf9fa55ffbdc0db/sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashedRelation.scala#L221) are unique. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Unit test. -- 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]
