v.24.10New Feature
New Aggregate Function quantileExactWeightedInterpolated for Enhanced Accuracy
A new aggregate functionquantileExactWeightedInterpolated, which is a interpolated version based on quantileExactWeighted. Some people may wonder why we need a newquantileExactWeightedInterpolatedsince we already havequantileExactInterpolatedWeighted. The reason is the new one is more accurate than the old one. This is for spark compatibility. #69619 (李扬).
Why it matters
This function addresses the need for a more accurate weighted quantile calculation, offering better precision compared to the existingquantileExactInterpolatedWeighted. It is designed to enhance compatibility with Spark's quantile calculations.How to use it
Use the new aggregate functionquantileExactWeightedInterpolated in your SQL queries wherever weighted quantile aggregation is needed, just like other quantile functions.