HyukjinKwon commented on a change in pull request #32204:
URL: https://github.com/apache/spark/pull/32204#discussion_r635793918
##########
File path: python/pyspark/sql/readwriter.py
##########
@@ -1204,31 +1055,13 @@ def json(self, path, mode=None, compression=None,
dateFormat=None, timestampForm
* ``ignore``: Silently ignore this operation if data already
exists.
* ``error`` or ``errorifexists`` (default case): Throw an
exception if data already \
exists.
- compression : str, optional
- compression codec to use when saving to file. This can be one of
the
- known case-insensitive shorten names (none, bzip2, gzip, lz4,
- snappy and deflate).
- dateFormat : str, optional
- sets the string that indicates a date format. Custom date formats
- follow the formats at
- `datetime pattern
<https://spark.apache.org/docs/latest/sql-ref-datetime-pattern.html>`_. # noqa
- This applies to date type. If None is set, it uses the
- default value, ``yyyy-MM-dd``.
- timestampFormat : str, optional
- sets the string that indicates a timestamp format.
- Custom date formats follow the formats at
- `datetime pattern
<https://spark.apache.org/docs/latest/sql-ref-datetime-pattern.html>`_. # noqa
- This applies to timestamp type. If None is set, it uses the
- default value, ``yyyy-MM-dd'T'HH:mm:ss[.SSS][XXX]``.
- encoding : str, optional
- specifies encoding (charset) of saved json files. If None is set,
- the default UTF-8 charset will be used.
- lineSep : str, optional
- defines the line separator that should be used for writing. If
None is
- set, it uses the default value, ``\\n``.
- ignoreNullFields : str or bool, optional
- Whether to ignore null fields when generating JSON objects.
- If None is set, it uses the default value, ``true``.
+
+ Other Parameters
+ ----------------
+ Extra options
+ For the extra options, refer to
+ `Data Source Option
<https://spark.apache.org/docs/latest/sql-data-sources-parquet.html#data-source-option>`_
# noqa
+ in the version you use.
Review comment:
Here you didn't link generic options but you did for Parquet. What's
diff?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]