v.21.7New Feature
Add fast quantileBFloat16 functions in ClickHouse
AddquantileBFloat16aggregate function as well as the correspondingquantilesBFloat16andmedianBFloat16. It is very simple and fast quantile estimator with relative error not more than 0.390625%. This closes #16641. #23204 (Ivan Novitskiy).
Why it matters
These new aggregate functions provide a very simple and fast method for estimating quantiles, offering a relative error of no more than 0.390625%. This improves performance and precision for quantile calculations in analytical queries.How to use it
Use the aggregate functionsquantileBFloat16, quantilesBFloat16, or medianBFloat16 in your SELECT queries just like other quantile functions to compute approximate quantiles with improved speed and guaranteed error bounds.