alekjarmov opened a new pull request, #58898: URL: https://github.com/apache/spark/pull/58898
### What changes were proposed in this pull request? The SQL Server connection provider invokes the JDBC driver's URL parser through reflection. This change unwraps `InvocationTargetException` when the reflected parser throws and propagates the original exception. This ports [databricks-eng/runtime#255979](https://github.com/databricks-eng/runtime/pull/255979) to Apache Spark. ### Why are the changes needed? Reflection wraps parser failures in `InvocationTargetException`, hiding the original structured JDBC exception details from callers. Propagating the cause preserves those details. ### Does this PR introduce _any_ user-facing change? Yes. Failures from the SQL Server JDBC driver's reflected URL parser now surface as their original exceptions instead of `InvocationTargetException` wrappers. ### How was this patch tested? Added a test to `MSSQLConnectionProviderSuite` that verifies the exact original `SQLException` is propagated. Attempted: `build/sbt 'sql/testOnly *MSSQLConnectionProviderSuite'` The local run could not start because the SBT launcher and required build plugins were unavailable from the configured Maven repositories in this environment. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Cursor GPT-5.6 Sol -- 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]
