You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/12/23 08:18:31 UTC
[GitHub] [spark] beliefer commented on a change in pull request #30870: [SPARK-33542][SQL] Group exception messages in catalyst/catalog
beliefer commented on a change in pull request #30870:
URL: https://github.com/apache/spark/pull/30870#discussion_r547792419
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/QueryCompilationErrors.scala
##########
@@ -501,4 +505,171 @@ object QueryCompilationErrors {
def commandNotSupportNestedColumnError(command: String, quoted: String): Throwable = {
new AnalysisException(s"$command does not support nested column: $quoted")
}
+
+ def renameTempViewToExistsViewError(oldName: String, newName: String): Throwable = {
+ new AnalysisException(
+ s"rename temporary view from '$oldName' to '$newName': destination view already exists")
+ }
+
+ def databaseExistTableError(db: String): Throwable = {
+ new AnalysisException(s"Database $db is not empty. One or more tables exist.")
+ }
+
+ def databaseExistFunctionError(db: String): Throwable = {
Review comment:
Where is `databaseNotEmptyError`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org