Stefan Savic created SPARK-55065:
------------------------------------

             Summary: Avoid making two JDBC API calls
                 Key: SPARK-55065
                 URL: https://issues.apache.org/jira/browse/SPARK-55065
             Project: Spark
          Issue Type: Improvement
          Components: Spark Core
    Affects Versions: 4.1.1, 4.2.0
            Reporter: Stefan Savic


Instead of explicitly calling tableExists in JDBCTableCatalog.loadTable(...), 
this change now detects table existence by catching exceptions from 
getQueryOutputSchema and checking it with dialect specific method 
isObjectNotFoundException.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to