ueshin opened a new pull request, #49758: URL: https://github.com/apache/spark/pull/49758
### What changes were proposed in this pull request? Avoids unnecessary object creation in `SparkSession.getActiveSession`. ### Why are the changes needed? `SparkSession.getActiveSession` tries to create a new `SparkSession` instance, but the instance will not be used in many cases. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? The existing tests should pass. ### 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]
