Merge branch 'feature-quantileBfloat16' of github.com:RedClusive/ClickHouse into feature-quantileBfloat16

This commit is contained in:
RedClusive 2021-04-15 17:10:35 +00:00
commit 6aee43f323
2 changed files with 4 additions and 5 deletions

View File

@ -67,12 +67,11 @@ struct Bfloat16Histogram
buf.read(reinterpret_cast<char *>(array.data()), size * sizeof(array[0]));
}
template <typename T>
T quantile(const Float64 & level)
Float32 quantile(const Float64 & level)
{
if (array.empty())
{
return onEmpty<T>();
return onEmpty<Value>();
}
sortIfNeeded();

View File

@ -44,7 +44,7 @@ struct QuantileBfloat16Histogram
Value get(Float64 level)
{
return data.template quantile<Value>(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<Float64>(level);
return data.quantile(level);
}
void getManyFloat(const Float64 * levels, const size_t * indices, size_t size, Float64 * result)