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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]