MaxGekk opened a new pull request #29952:
URL: https://github.com/apache/spark/pull/29952


   ### What changes were proposed in this pull request?
   1. Add new method to the `JdbcDialect` class - `classifyException()`. It 
converts dialect specific exception to Spark's `AnalysisException` or its 
sub-classes.
   2. Replace H2 exception  `org.h2.jdbc.JdbcSQLException` in 
`JDBCTableCatalogSuite` by `AnalysisException`.
   
   ### Why are the changes needed?
   Currently JDBC v2 Table Catalog implementation throws dialect specific 
exception and ignores exceptions defined in the `TableCatalog` interface. This 
PR adds new method for converting dialect specific exception, and assumes that 
follow up PRs will implement `classifyException()`.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes.
   
   ### How was this patch tested?
   By running existing test suites `JDBCTableCatalogSuite` and `JDBCV2Suite`.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to