HyukjinKwon opened a new pull request #35065: URL: https://github.com/apache/spark/pull/35065
### What changes were proposed in this pull request? This PR proposes to add `Utils.isAtExecutorSide` to see if the codes are running on Executor (or Driver). ### Why are the changes needed? There is currently no single call to see if we're on Executor (or Driver). `TaskContext.get == null` is being used for that way. We should better explicitly factor out to `Utils`. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Existing unittests should cover this case. -- 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]
