Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12494#discussion_r60526159
  
    --- Diff: python/pyspark/sql/readwriter.py ---
    @@ -367,16 +370,19 @@ def format(self, source):
         @since(1.5)
         def option(self, key, value):
             """Adds an output option for the underlying data source.
    +
    +        >>> csvpath = os.path.join(tempfile.mkdtemp(), 'data')
    +        >>> df.write.option('quote', None).format('csv').save(csvpath)
    --- End diff --
    
    I added null check that disallows null input.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to