SuccessChanges

Summary

  1. [SPARK-32306][SQL][DOCS][2.4] Clarify the result of (details)
  2. [MINOR][SQL][2.4] Improve examples for `percentile_approx()` (details)
Commit d2047957ff16d322314af50f86d0d36ac7199bf6 by gurwls223
[SPARK-32306][SQL][DOCS][2.4] Clarify the result of
`percentile_approx()`
### What changes were proposed in this pull request? More precise
description of the result of the `percentile_approx()` function and its
synonym `approx_percentile()`. The proposed sentence clarifies that  the
function returns **one of elements** (or array of elements) from the
input column.
### Why are the changes needed? To improve Spark docs and avoid
misunderstanding of the function behavior.
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested?
`./dev/scalastyle`
Authored-by: Max Gekk <max.gekkgmail.com> Signed-off-by: Liang-Chi Hsieh
<viiryagmail.com>
(cherry picked from commit 7c14f177eb5b52d491f41b217926cc8ca5f0ce4c)
Signed-off-by: Max Gekk <max.gekkgmail.com>
Closes #29847 from MaxGekk/doc-percentile_approx-2.4.
Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon
<gurwls223@apache.org>
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/ApproximatePercentile.scala (diff)
Commit 13664434387e338a5029e73a4388943f34e3fc07 by gurwls223
[MINOR][SQL][2.4] Improve examples for `percentile_approx()`
### What changes were proposed in this pull request? In the PR, I
propose to replace current examples for `percentile_approx()` with
**only one** input value by example **with multiple values** in the
input column.
### Why are the changes needed? Current examples are pretty trivial, and
don't demonstrate function's behaviour on a sequence of values.
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested?
`./dev/scalastyle`
Authored-by: Max Gekk <max.gekkgmail.com> Signed-off-by: HyukjinKwon
<gurwls223apache.org>
(cherry picked from commit b53da23a28fe149cc75d593c5c36f7020a8a2752)
Signed-off-by: Max Gekk <max.gekkgmail.com>
Closes #29849 from MaxGekk/example-percentile_approx-2.4.
Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: HyukjinKwon
<gurwls223@apache.org>
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/ApproximatePercentile.scala (diff)