diff --git a/src/AggregateFunctions/Bfloat16Histogram.h b/src/AggregateFunctions/Bfloat16Histogram.h index d29d809618c..424ae6c1f4b 100644 --- a/src/AggregateFunctions/Bfloat16Histogram.h +++ b/src/AggregateFunctions/Bfloat16Histogram.h @@ -67,12 +67,11 @@ struct Bfloat16Histogram buf.read(reinterpret_cast(array.data()), size * sizeof(array[0])); } - template - T quantile(const Float64 & level) + Float32 quantile(const Float64 & level) { if (array.empty()) { - return onEmpty(); + return onEmpty(); } sortIfNeeded(); diff --git a/src/AggregateFunctions/QuantileBfloat16Histogram.h b/src/AggregateFunctions/QuantileBfloat16Histogram.h index 23d985fa50a..2b5bb9d9ddc 100644 --- a/src/AggregateFunctions/QuantileBfloat16Histogram.h +++ b/src/AggregateFunctions/QuantileBfloat16Histogram.h @@ -44,7 +44,7 @@ struct QuantileBfloat16Histogram Value get(Float64 level) { - return data.template quantile(level); + return data.quantile(level); } void getMany(const Float64 * levels, const size_t * indices, size_t size, Value * result) @@ -53,7 +53,7 @@ struct QuantileBfloat16Histogram } Float64 getFloat(Float64 level) { - return data.template quantile(level); + return data.quantile(level); } void getManyFloat(const Float64 * levels, const size_t * indices, size_t size, Float64 * result)