aleksandar-trajkovic-db commented on code in PR #60673:
URL: https://github.com/apache/spark/pull/60673#discussion_r4631256342


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCRDD.scala:
##########
@@ -72,6 +72,9 @@ object JDBCRDD extends Logging {
     try {
       getQueryOutputSchema(fullQuery, options, dialect, conn)
     } catch {
+      // Must precede isObjectNotFoundException, whose default matches any 
42xxx SQLSTATE.
+      case e: SQLException if dialect.isPermissionDeniedException(e) =>

Review Comment:
   Out of scope for this PR, which classifies permission errors during output 
schema resolution only. The data-query path is left for a separate change.



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

Reply via email to