HyukjinKwon commented on a change in pull request #26299: 
[MINOR][PYSPARK][DOCS] Fix typo in example documentation
URL: https://github.com/apache/spark/pull/26299#discussion_r341419683
 
 

 ##########
 File path: python/pyspark/sql/readwriter.py
 ##########
 @@ -733,7 +733,7 @@ def save(self, path=None, format=None, mode=None, 
partitionBy=None, **options):
         :param partitionBy: names of partitioning columns
         :param options: all other string options
 
-        >>> df.write.mode('append').parquet(os.path.join(tempfile.mkdtemp(), 
'data'))
+        >>> df.write.mode("overwrite").save("mydata.parquet")
 
 Review comment:
   I think we should revert this change. Tmp directory will be created under 
target directory as of 
https://github.com/apache/spark/commit/a634d66ce767bd5e1d8553d1a2c32e2b1a80f642 
; however, now seems it will create under the current working directory.

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

Reply via email to