Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-29675][SQL] Add exception when isolationLevel is Illegal
### What changes were proposed in this pull request? Now we use JDBC api and set an Illegal isolationLevel option, spark will throw a `scala.MatchError`, it's not friendly to user. So we should add an IllegalArgumentException. ### Why are the changes needed? Make exception friendly to user. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Add UT. Closes #26334 from ulysses-you/SPARK-29675. Authored-by: ulysses <youxiduo@weidian.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
- Loading branch information