v.21.6Improvement

Fixed quantile(s)TDigest with singleton centroid handling and bug in over-compression of centroids

Fixed quantile(s)TDigest. Added special handling of singleton centroids according to tdunning/t-digest 3.2+. Also a bug with over-compression of centroids in implementation of earlier version of the algorithm was fixed. #23314 (Vladimir Chebotarev).
Fixed and improved quantile(s)TDigest aggregate functions by adding special handling of singleton centroids and correcting over-compression issues based on tdunning/t-digest 3.2+ algorithm.

Why it matters

This feature addresses inaccuracies in the quantile(s)TDigest functions caused by improper handling of singleton centroids and excessive centroid compression. By aligning with the updated tdunning/t-digest 3.2+ algorithm, the result is more accurate quantile estimations, providing users with reliable statistical summaries.

How to use it

Users benefit from these improvements automatically when using the quantileTDigest and quantilesTDigest functions in their queries; no additional configuration or changes in usage are required.