viirya commented on code in PR #37879:
URL: https://github.com/apache/spark/pull/37879#discussion_r972575165


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala:
##########
@@ -247,7 +247,28 @@ case class DropTableCommand(
     } else if (ifExists) {
       // no-op
     } else {
-      throw 
QueryCompilationErrors.tableOrViewNotFoundError(tableName.identifier)
+      throw QueryCompilationErrors.noSuchTableError(
+        tableName.catalog.toSeq ++ tableName.database :+ tableName.table)
+    }
+    Seq.empty[Row]
+  }
+}
+
+case class DropTempViewCommand(ident: Identifier) extends LeafRunnableCommand {

Review Comment:
   Oh, I see. I read the comment "v1 DROP TABLE supports temp view." wrongly. 
There is also other pattern statement for v2 going to `DropTempViewCommand`.



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