Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.3.0
-
None
-
None
Description
percentile_approx should choose the first element if it already reaches the percentage.
For example, given input data 1 to 10, if a user queries 10% (or even less) percentile, it should return 1 (instead of 2), because the first value 1 already reaches 10%. Currently it returns a wrong answer: 2.
Attachments
Issue Links
- duplicates
-
SPARK-22208 Improve percentile_approx by not rounding up targetError and starting from index 0
- Resolved
- links to