Description
Although users can use df.write.mode("overwrite") to specify the mode, when save/saveAsTable/json/parquet/jdbc is called, this mode will be overridden. For example, the implementation of json method is
def json(self, path, mode="error"):
self._jwrite.mode(mode).json(path)
If users only call json("path"), the mode will be "error" instead of the mode specified in the mode method.
Attachments
Issue Links
- links to