cloud-fan commented on code in PR #37879: URL: https://github.com/apache/spark/pull/37879#discussion_r972562339
########## 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: temp view is a Spark internal thing and is unrelated to data source, so it's neither v1 nor v2. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org