Skip to content

Commit f6bd4ec

Browse files
committed
[MINOR][DOCS] Fix some links for python api doc
1 parent bd32400 commit f6bd4ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/pyspark/sql/readwriter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ def json(self, path, schema=None, primitivesAsString=None, prefersDecimal=None,
253253
:param recursiveFileLookup: recursively scan a directory for files. Using this option
254254
disables `partition discovery`_.
255255
256-
.. _partition discovery: /sql-data-sources-parquet.html#partition-discovery
257-
.. _datetime pattern: https://spark.apache.org/docs/latest/sql-ref-datetime-pattern.html
256+
.. _partition discovery: /docs/latest/sql-data-sources-parquet.html#partition-discovery
257+
.. _datetime pattern: /docs/latest/sql-ref-datetime-pattern.html
258258
259259
>>> df1 = spark.read.json('python/test_support/sql/people.json')
260260
>>> df1.dtypes

python/pyspark/sql/streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ def json(self, path, schema=None, primitivesAsString=None, prefersDecimal=None,
489489
:param recursiveFileLookup: recursively scan a directory for files. Using this option
490490
disables `partition discovery`_.
491491
492-
.. _partition discovery: /sql-data-sources-parquet.html#partition-discovery
493-
.. _datetime pattern: https://spark.apache.org/docs/latest/sql-ref-datetime-pattern.html
492+
.. _partition discovery: /docs/latest/sql-data-sources-parquet.html#partition-discovery
493+
.. _datetime pattern: /docs/latest/sql-ref-datetime-pattern.html
494494
495495
>>> json_sdf = spark.readStream.json(tempfile.mkdtemp(), schema = sdf_schema)
496496
>>> json_sdf.isStreaming

0 commit comments

Comments
 (0)