You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2026/08/21 00:13:00 UTC
[jira] [Assigned] (SPARK-58916) Handle infinite relativeError in approxQuantile
[ https://issues.apache.org/jira/browse/SPARK-58916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ruifeng Zheng reassigned SPARK-58916:
-------------------------------------
Assignee: Ruifeng Zheng
> 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
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org