Skip to content

Commit b7aa8c7

Browse files
committed
Resolve comments
1 parent fc2e064 commit b7aa8c7

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

docs/sql-data-sources-parquet.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ Data source options of Parquet can be set via:
305305
<td>write</td>
306306
</tr>
307307
</table>
308+
Other generic options can be found in <a href="https://spark.apache.org/docs/latest/sql-data-sources-generic-options.html"> Generic Files Source Options</a>
308309

309310
### Configuration
310311

python/pyspark/sql/readwriter.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,10 @@ def parquet(self, *paths, **options):
418418
----------------
419419
options**
420420
Please refer to
421-
`Data Source Option <http://127.0.0.1:4000/sql-data-sources-parquet.html#data-source-option>`_
421+
`Data Source Option <https://spark.apache.org/docs/latest/sql-data-sources-parquet.html#data-source-option>`_
422422
for the options.
423+
Note that you should refer to the documentation of the specific version you're using
424+
because the link above always points out the latest documentation.
423425
424426
Examples
425427
--------
@@ -1226,7 +1228,9 @@ def parquet(self, path, mode=None, partitionBy=None, compression=None):
12261228
Other Parameters
12271229
----------------
12281230
Extra options (keyword argument)
1229-
`Data Source Option <http://127.0.0.1:4000/sql-data-sources-parquet.html#data-source-option>`_.
1231+
`Data Source Option <https://spark.apache.org/docs/latest/sql-data-sources-parquet.html#data-source-option>`_.
1232+
Note that you should refer to the documentation of the specific version you're using
1233+
because the link above always points out the latest documentation.
12301234
12311235
Examples
12321236
--------

python/pyspark/sql/streaming.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,13 @@ def parquet(self, path, mergeSchema=None, pathGlobFilter=None, recursiveFileLook
714714
If None is set, the value of the SQL config
715715
``spark.sql.parquet.int96RebaseModeInRead`` is used by default.
716716
717+
Other Parameters
718+
----------------
719+
Extra options (keyword argument)
720+
`Data Source Option <https://spark.apache.org/docs/latest/sql-data-sources-parquet.html#data-source-option>`_.
721+
Note that you should refer to the documentation of the specific version you're using
722+
because the link above always points out the latest documentation.
723+
717724
Examples
718725
--------
719726
>>> parquet_sdf = spark.readStream.schema(sdf_schema).parquet(tempfile.mkdtemp())

sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,11 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
813813
* Loads a Parquet file, returning the result as a `DataFrame`.
814814
*
815815
* Parquet-specific option(s) for reading Parquet files can be found in
816-
* <a href="http://127.0.0.1:4000/sql-data-sources-parquet.html#data-source-option">
816+
* <a href=
817+
* "https://spark.apache.org/docs/latest/sql-data-sources-parquet.html#data-source-option">
817818
* Data Source Option</a>.
819+
* Note that you should refer to the documentation of the specific version you're using
820+
* because the link above always points out the latest documentation.
818821
*
819822
* @since 1.4.0
820823
*/

sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,11 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) {
861861
* }}}
862862
*
863863
* Parquet-specific option(s) for writing Parquet files can be found in
864-
* <a href="http://127.0.0.1:4000/sql-data-sources-parquet.html#data-source-option">
864+
* <a href=
865+
* "https://spark.apache.org/docs/latest/sql-data-sources-parquet.html#data-source-option">
865866
* Data Source Option</a>.
867+
* Note that you should refer to the documentation of the specific version you're using
868+
* because the link above always points out the latest documentation.
866869
*
867870
* @since 1.4.0
868871
*/

0 commit comments

Comments
 (0)