From 57353c2d3e68436f2078c196c5f30f32dcec065b Mon Sep 17 00:00:00 2001 From: yangjie01 Date: Tue, 22 Aug 2023 15:09:31 +0900 Subject: [PATCH] [SPARK-44904][PYTHON][DOCS] Correct the `versionadded` of `sql.functions.approx_percentile` to 3.5.0 ### What changes were proposed in this pull request? `sql.functions.approx_percentile` was introduced in SPARK-43941 (https://github.com/apache/spark/pull/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 #42597 from LuciferYang/SPARK-44904. Lead-authored-by: yangjie01 Co-authored-by: Hyukjin Kwon Signed-off-by: Hyukjin Kwon (cherry picked from commit 534f9ea31196bd447449f5ea9dc9b5a80a4c4699) Signed-off-by: Hyukjin Kwon --- python/pyspark/sql/functions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py index b285550d0247d..7999f9ce3a0d3 100644 --- a/python/pyspark/sql/functions.py +++ b/python/pyspark/sql/functions.py @@ -4523,10 +4523,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 ----------