pan3793 commented on PR #46028: URL: https://github.com/apache/spark/pull/46028#issuecomment-2058494618
@mridulm In this case, `ThreadUtils.parmap` catches and wraps the internal `AnalysisException` with a `SparkException`, if we throw `SparkException` directly, the callsites are retained, but propagating `SparkException` instead of the real exception `AnalysisException` might not desirable behavior, I believe the original author also wants to keep `AnalysisException` so unwrap in-place. I checked other callers of `ThreadUtils.parmap`, they throw `SparkException` directly so no such issues. -- 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]
