From 8737c533c0c432c597f082882b38a35b4409b22b Mon Sep 17 00:00:00 2001 From: redclusive Date: Thu, 15 Apr 2021 20:07:14 +0300 Subject: [PATCH] fix logic --- src/AggregateFunctions/Bfloat16Histogram.h | 5 ++--- src/AggregateFunctions/QuantileBfloat16Histogram.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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)