-
- Downloads
[SPARK-18111][SQL] Wrong ApproximatePercentile answer when multiple records have the minimum value
## What changes were proposed in this pull request? When multiple records have the minimum value, the answer of ApproximatePercentile is wrong. ## How was this patch tested? add a test case Author: wangzhenhua <wangzhenhua@huawei.com> Closes #15641 from wzhfy/percentile.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/QuantileSummaries.scala 3 additions, 1 deletion...rg/apache/spark/sql/catalyst/util/QuantileSummaries.scala
- sql/core/src/test/scala/org/apache/spark/sql/ApproximatePercentileQuerySuite.scala 11 additions, 0 deletions...rg/apache/spark/sql/ApproximatePercentileQuerySuite.scala
Loading
Please register or sign in to comment