srowen commented on code in PR #40588:
URL: https://github.com/apache/spark/pull/40588#discussion_r1155956922
##########
sql/core/src/main/scala/org/apache/spark/sql/jdbc/PostgresDialect.scala:
##########
@@ -215,13 +215,18 @@ private object PostgresDialect extends JdbcDialect with
SQLConfHelper {
case sqlException: SQLException =>
sqlException.getSQLState match {
// https://www.postgresql.org/docs/14/errcodes-appendix.html
- case "42P07" =>
+ case "42P07" if sqlException.getMessage != null =>
Review Comment:
If there's no message, what do we think that means? do one of the existing
error paths still apply?
--
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]