From 043af0a5ca6b86b94fc8ef00d9e3900108003af6 Mon Sep 17 00:00:00 2001 From: redclusive Date: Wed, 14 Apr 2021 23:38:56 +0300 Subject: [PATCH] add quantileBfloat16 --- .../AggregateFunctionQuantile.cpp | 7 + .../AggregateFunctionQuantile.h | 4 + src/AggregateFunctions/Bfloat16Histogram.h | 171 ++++++++++++++++++ .../QuantileBfloat16Histogram.h | 65 +++++++ 4 files changed, 247 insertions(+) create mode 100644 src/AggregateFunctions/Bfloat16Histogram.h create mode 100644 src/AggregateFunctions/QuantileBfloat16Histogram.h diff --git a/src/AggregateFunctions/AggregateFunctionQuantile.cpp b/src/AggregateFunctions/AggregateFunctionQuantile.cpp index 1dcdb288339..5594beb90e3 100644 --- a/src/AggregateFunctions/AggregateFunctionQuantile.cpp +++ b/src/AggregateFunctions/AggregateFunctionQuantile.cpp @@ -52,6 +52,9 @@ template using FuncQuantilesTDigest = Aggreg template using FuncQuantileTDigestWeighted = AggregateFunctionQuantile, NameQuantileTDigestWeighted, true, std::conditional_t, false>; template using FuncQuantilesTDigestWeighted = AggregateFunctionQuantile, NameQuantilesTDigestWeighted, true, std::conditional_t, true>; +template using FuncQuantileBfloat16 = AggregateFunctionQuantile, NameQuantileBfloat16, false, std::conditional_t, false>; +template using FuncQuantilesBfloat16 = AggregateFunctionQuantile, NameQuantilesBfloat16, false, std::conditional_t, true>; + template