v.21.12New Features
Introduced More Effective Exponential Time Decayed Window Functions
Introduced window functionsexponentialTimeDecayedSum,exponentialTimeDecayedMax,exponentialTimeDecayedCountandexponentialTimeDecayedAvgwhich are more effective thanexponentialMovingAveragefor bigger windows. Also more use-cases were covered. #29799 (Vladimir Chebotarev).
Why it matters
These new window functions address the limitations ofexponentialMovingAverage when applied to bigger windows by offering better performance and wider analytical use-cases, enabling users to perform decay-based aggregations more effectively on time-series data.How to use it
Use the newly introduced window functions within yourSELECT queries over window frames. Replace or supplement exponentialMovingAverage with exponentialTimeDecayedSum, exponentialTimeDecayedMax, exponentialTimeDecayedCount, or exponentialTimeDecayedAvg for improved performance and analysis over larger data sets.