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/08/21 20:04:39 UTC

[GitHub] [spark] xuanyuanking commented on a change in pull request #29507: [SPARK-32680][SQL] Don't Preprocess V2 CTAS with Unresolved Query

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org