LantaoJin commented on a change in pull request #26097: [SPARK-29421][SQL] 
Supporting Create Table Like Using Provider
URL: https://github.com/apache/spark/pull/26097#discussion_r344248798
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/GlobalTempViewSuite.scala
 ##########
 @@ -123,6 +123,19 @@ class GlobalTempViewSuite extends QueryTest with 
SharedSparkSession {
     }
   }
 
+  test("CREATE TABLE LIKE USING provider for view") {
+    withTable("cloned") {
+      withGlobalTempView("src") {
+        sql("CREATE GLOBAL TEMP VIEW src AS SELECT 1 AS a, '2' AS b")
+        sql(s"CREATE TABLE cloned LIKE $globalTempDB.src USING orc")
 
 Review comment:
   Ok, I will move it to DDLSuite

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


With regards,
Apache Git Services

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

Reply via email to