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 2019/10/20 14:57:43 UTC

[GitHub] [spark] imback82 commented on a change in pull request #26178: [SPARK-29521][SQL] LOAD DATA INTO TABLE should look up catalog/table like v2 commands

imback82 commented on a change in pull request #26178: [SPARK-29521][SQL] LOAD DATA INTO TABLE should look up catalog/table like v2 commands
URL: https://github.com/apache/spark/pull/26178#discussion_r336782325
 
 

 ##########
 File path: sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
 ##########
 @@ -1210,6 +1210,38 @@ class DataSourceV2SQLSuite
     }
   }
 
+  test("LOAD DATA INTO TABLE") {
+    val t = "testcat.ns1.ns2.tbl"
+    withTable(t) {
+      sql(
+        s"""
+           |CREATE TABLE $t (id bigint, data string)
+           |USING foo
+           |PARTITIONED BY (id)
+         """.stripMargin)
+
+      val e1 = intercept[AnalysisException] {
 
 Review comment:
   I actually created the function that can be reused here: #26183. Please let me know what you think. Thanks!

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


With regards,
Apache Git Services

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