You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-52262][SQL] swap order of withConnection and classifyException in loadTable
### What changes were proposed in this pull request?
Swap order of `withConnection` and `classifyException` in `loadTable` since connection errors were swallowed with `FAILED_JDBC.TABLE_EXISTS`
### Why are the changes needed?
To not have misleading error message.
### Does this PR introduce _any_ user-facing change?
User would not see wrong wrapped error.
### How was this patch tested?
Added a unit test and used debugger locally.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes#50986 from alekjarmov/remove-wrap-wrong-error.
Lead-authored-by: alekjarmov <[email protected]>
Co-authored-by: Alek Jarmov <[email protected]>
Co-authored-by: Alek Jarmov <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
0 commit comments