erenavsarogullari opened a new pull request, #55640: URL: https://github.com/apache/spark/pull/55640
### What changes were proposed in this pull request? Currently, `HashedRelation` creates `TaskMemoryManager` by duplicating same `TaskMemoryManager` definition on following APIs: ``` HashedRelation.apply() UnsafeHashedRelation.read() LongToUnsafeRowMap.this() ``` It will be useful to expose a single `TaskMemoryManager` creation API to avoid code duplication and this approach will be useful for the following kind of cases by managing the required logic with single definition: https://issues.apache.org/jira/browse/SPARK-54354 https://github.com/apache/spark/pull/53065 ### Why are the changes needed? It will be useful for long-term maintenance. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Being added new UT case and existing test cases creating `HashedRelation` instance. ### 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]
