xuanyuanking commented on a change in pull request #29507:
URL: https://github.com/apache/spark/pull/29507#discussion_r474921585
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala
##########
@@ -2452,6 +2452,13 @@ class DataFrameSuite extends QueryTest
assert(e.getMessage.contains("Table or view not found:"))
}
+ test("SPARK-32680: Don't analyze CTAS with unresolved query") {
+ val e = intercept[AnalysisException] {
+ sql("CREATE TABLE t USING delta AS SELECT * from nonexist")
Review comment:
Using a build-in data source?
----------------------------------------------------------------
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]