GitHub user wzhfy opened a pull request: https://github.com/apache/spark/pull/15641
[SPARK-18111] [SQL] add the min element when compressing samples in QuantileSummaries ## 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 You can merge this pull request into a Git repository by running: $ git pull https://github.com/wzhfy/spark percentile Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15641.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15641 ---- commit 26a4f8524126fe7ff0b358b6de2f328217082ad4 Author: wangzhenhua <wangzhen...@huawei.com> Date: 2016-10-26T06:44:44Z keep the min element when merge commit 3ad59203106f8e575713069e5bd76c5339deb8fe Author: wangzhenhua <wangzhen...@huawei.com> Date: 2016-10-26T06:46:43Z typo ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org