hvanhovell commented on code in PR #40061:
URL: https://github.com/apache/spark/pull/40061#discussion_r1109147488


##########
connector/connect/client/jvm/src/test/scala/org/apache/spark/sql/ClientE2ETestSuite.scala:
##########
@@ -128,6 +128,15 @@ class ClientE2ETestSuite extends RemoteSparkSession {
     }
   }
 
+  test("write table") {
+    val df = spark.range(10).limit(3)
+    df.write.mode(SaveMode.Overwrite).saveAsTable("myTable")
+    val list = spark.sql("select * from myTable").collectAsList()
+    assert(list.size() == 3)
+
+    spark.sql("drop table if exists myTable")

Review Comment:
   this is lazy. you need to call collect()



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to