Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/12385#discussion_r61976365
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
---
@@ -243,10 +257,10 @@ class SessionCatalog(
if (name.database.isDefined || !tempTables.contains(table)) {
// When ignoreIfNotExists is false, no exception is issued when the
table does not exist.
// Instead, log it as an error message.
- if (externalCatalog.tableExists(db, table)) {
+ if (tableExists(name)) {
externalCatalog.dropTable(db, table, ignoreIfNotExists = true)
} else if (!ignoreIfNotExists) {
- logError(s"Table or View '${name.quotedString}' does not exist")
+ logError(new NoSuchTableException(db = db, table =
table).getMessage)
--- End diff --
I fixed this in my patch #12853, but we should throw exception here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]