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).Why it matters
This feature addresses inaccuracies in thequantile(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 thequantileTDigest and quantilesTDigest functions in their queries; no additional configuration or changes in usage are required.