HyukjinKwon commented on a change in pull request #25175:
[SPARK-28411][PYTHON][SQL] InsertInto with overwrite is not honored
URL: https://github.com/apache/spark/pull/25175#discussion_r304180252
##########
File path: python/pyspark/sql/tests/test_readwriter.py
##########
@@ -141,6 +141,25 @@ def count_bucketed_cols(names, table="pyspark_bucket"):
.mode("overwrite").saveAsTable("pyspark_bucket"))
self.assertSetEqual(set(data),
set(self.spark.table("pyspark_bucket").collect()))
+ def test_insert_into(self):
+ df = self.spark.createDataFrame([("a", 1), ("b", 2)], ["C1", "C2"])
+ df.write.saveAsTable("test_table")
Review comment:
Can you use `with self.table("test_table"):` too?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]