cloud-fan commented on code in PR #53858:
URL: https://github.com/apache/spark/pull/53858#discussion_r2705307422
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala:
##########
@@ -586,8 +586,7 @@ class SessionCatalog(
val qualifiedIdent = qualifyIdentifier(name)
val db = qualifiedIdent.database.get
val table = qualifiedIdent.table
- requireDbExists(db)
- requireTableExists(qualifiedIdent)
+ // Let externalCatalog.getTable handle error reporting to save RPC calls.
Review Comment:
```suggestion
// Let the external catalog handle all error cases (db not exists, table
not exists)
```
--
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]