Skip to content

Commit

Permalink
[SPARK-44904][PYTHON][DOCS] Correct the versionadded of `sql.functi…
Browse files Browse the repository at this point in the history
…ons.approx_percentile` to 3.5.0

### What changes were proposed in this pull request?
`sql.functions.approx_percentile`  was introduced in SPARK-43941 (apache#41588). This is a pr for the Spark 3.5.0 and it does not belong to Spark 3.4.0. Therefore, this pr corrects the `versionadded` of `sql.functions.approx_percentile` to 3.5.0 and removed `versionchanged`.

### Why are the changes needed?
Correct the `versionadded` of `sql.functions.approx_percentile`.

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

### How was this patch tested?
Pass GitHub Actions

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

Closes apache#42597 from LuciferYang/SPARK-44904.

Lead-authored-by: yangjie01 <yangjie01@baidu.com>
Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
2 people authored and ragnarok56 committed Mar 2, 2024
1 parent caed336 commit 1f8784d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4524,10 +4524,11 @@ def approx_percentile(
of `col` values is less than the value or equal to that value.
.. versionadded:: 3.1.0
.. versionadded:: 3.5.0
.. versionchanged:: 3.4.0
Supports Spark Connect.
Notes
-----
Supports Spark Connect.
Parameters
----------
Expand Down

0 comments on commit 1f8784d

Please sign in to comment.