Skip to content

Commit

Permalink
[SPARK-51300][PS][DOCS] Fix broken link for ps.sql
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

This PR proposes to fix broken link for `ps.sql`

### Why are the changes needed?

There is broken link in official documentation for `ps.sql`

<img width="630" alt="Screenshot 2025-02-24 at 3 18 33 PM" src="https://github.com/user-attachments/assets/de70f1a9-35a2-4adb-80e4-d9726170344e" />

### Does this PR introduce _any_ user-facing change?

No API changes, but the user-facing documentation improvement.

### How was this patch tested?

Manually tested, and the existing doc build in CI should pass

### Was this patch authored or co-authored using generative AI tooling?

No

Closes apache#50056 from itholic/SPARK-51300.

Authored-by: Haejoon Lee <haejoon.lee@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
itholic authored and HyukjinKwon committed Feb 24, 2025
1 parent c6097c7 commit 3515b20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/pyspark/pandas/sql_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,13 @@ def sql(
args : dict or list
A dictionary of parameter names to Python objects or a list of Python objects
that can be converted to SQL literal expressions. See
`Supported Data Types`_ for supported value types in Python.
`Supported Data Types <https://spark.apache.org/docs/latest/sql-ref-datatypes.html>`_
for supported value types in Python.
For example, dictionary keys: "rank", "name", "birthdate";
dictionary values: 1, "Steven", datetime.date(2023, 4, 2).
A value can be also a `Column` of a literal or collection constructor functions such
as `map()`, `array()`, `struct()`, in that case it is taken as is.
.. _Supported Data Types: https://spark.apache.org/docs/latest/sql-ref-datatypes.html
.. versionadded:: 3.4.0
.. versionchanged:: 3.5.0
Expand Down

0 comments on commit 3515b20

Please sign in to comment.