grundprinzip commented on code in PR #38801:
URL: https://github.com/apache/spark/pull/38801#discussion_r1033220681


##########
python/pyspark/sql/tests/connect/test_connect_basic.py:
##########
@@ -566,6 +569,27 @@ def test_agg_with_two_agg_exprs(self):
             self.spark.read.table(self.tbl_name).agg({"name": "min", "id": 
"max"}).toPandas(),
         )
 
+    def test_write_operations(self):
+        with tempfile.TemporaryDirectory() as d:
+            df = self.connect.range(1, 100)
+            df.write.mode("overwrite").format("csv").save(d)
+
+            ndf = self.connect.read.load(d, format="csv")
+            df.toPandas().equals(ndf.toPandas())

Review Comment:
   it's actually `self.assert_eq` which is a custom function provided in the 
test suite



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