cloud-fan commented on code in PR #38595:
URL: https://github.com/apache/spark/pull/38595#discussion_r1019835252


##########
sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala:
##########
@@ -3804,6 +3804,13 @@ class Dataset[T] private[sql](
     } catch {
       case _: ParseException => throw 
QueryCompilationErrors.invalidViewNameError(viewName)
     }
+
+    if (tableIdentifier.database.isDefined) {
+      throw new AnalysisException(
+        errorClass = "TEMP_VIEW_DOES_NOT_BELONG_TO_A_DATABASE",

Review Comment:
   And this is a breaking change, can we add a legacy config to restore the 
previous behavior? (ignore the database)



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

Reply via email to