[
https://issues.apache.org/jira/browse/SPARK-58916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruifeng Zheng resolved SPARK-58916.
-----------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
Issue resolved by pull request 58173
[https://github.com/apache/spark/pull/58173]
> Handle infinite relativeError in approxQuantile
> -----------------------------------------------
>
> Key: SPARK-58916
> URL: https://issues.apache.org/jira/browse/SPARK-58916
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 5.0.0
> Reporter: Ruifeng Zheng
> Assignee: Ruifeng Zheng
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.4.0
>
>
> DataFrameStatFunctions.approxQuantile derives approx_percentile accuracy from
> relativeError. Double.PositiveInfinity passes the existing non-negative
> relative-error validation, but ceil(1.0 / relativeError) produces accuracy 0,
> which approx_percentile rejects. Clamp the derived accuracy to at least 1.
> See PR: https://github.com/apache/spark/pull/58173
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]