aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark')
-rw-r--r--python/pyspark/sql/readwriter.py4
-rw-r--r--python/pyspark/sql/streaming.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/python/pyspark/sql/readwriter.py b/python/pyspark/sql/readwriter.py
index ec47618e73..45fb9b7591 100644
--- a/python/pyspark/sql/readwriter.py
+++ b/python/pyspark/sql/readwriter.py
@@ -163,8 +163,8 @@ class DataFrameReader(OptionUtils):
"""
Loads a JSON file and returns the results as a :class:`DataFrame`.
- Both JSON (one record per file) and `JSON Lines <http://jsonlines.org/>`_
- (newline-delimited JSON) are supported and can be selected with the `wholeFile` parameter.
+ `JSON Lines <http://jsonlines.org/>`_(newline-delimited JSON) is supported by default.
+ For JSON (one record per file), set the `wholeFile` parameter to ``true``.
If the ``schema`` parameter is not specified, this function goes
through the input once to determine the input schema.
diff --git a/python/pyspark/sql/streaming.py b/python/pyspark/sql/streaming.py
index 7587875cb9..625fb9ba38 100644
--- a/python/pyspark/sql/streaming.py
+++ b/python/pyspark/sql/streaming.py
@@ -433,8 +433,8 @@ class DataStreamReader(OptionUtils):
"""
Loads a JSON file stream and returns the results as a :class:`DataFrame`.
- Both JSON (one record per file) and `JSON Lines <http://jsonlines.org/>`_
- (newline-delimited JSON) are supported and can be selected with the `wholeFile` parameter.
+ `JSON Lines <http://jsonlines.org/>`_(newline-delimited JSON) is supported by default.
+ For JSON (one record per file), set the `wholeFile` parameter to ``true``.
If the ``schema`` parameter is not specified, this function goes
through the input once to determine the input schema.