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

    https://github.com/apache/spark/pull/13576#discussion_r66569746
  
    --- Diff: python/pyspark/sql/readwriter.py ---
    @@ -327,6 +334,8 @@ def csv(self, path, schema=None, sep=None, 
encoding=None, quote=None, escape=Non
                             character. By default (None), it is disabled.
             :param header: uses the first line as names of columns. If None is 
set, it uses the
                            default value, ``false``.
    +        :param inferSchema: infers the input schema automatically from 
data. It requires one extra
    --- End diff --
    
    Yes, it will be off (so I wrote some comments above). However, thing is 
about `header`. If `inferSchema` option is removed and it is only enabled when 
the schema is set, there would be no way to not infer schema (meaning all 
string columns) but only use column names in the header.


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