mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fix Parquet stats for Float32 and Float64
This commit is contained in:
parent
e6c3224dfd
commit
4ed86fea2f
@ -37,8 +37,10 @@ namespace
|
||||
template <typename T, typename SourceType>
|
||||
struct StatisticsNumeric
|
||||
{
|
||||
T min = std::numeric_limits<T>::max();
|
||||
T max = std::numeric_limits<T>::min();
|
||||
T min = std::numeric_limits<T>::has_infinity
|
||||
? std::numeric_limits<T>::infinity() : std::numeric_limits<T>::max();
|
||||
T max = std::numeric_limits<T>::has_infinity
|
||||
? -std::numeric_limits<T>::infinity() : std::numeric_limits<T>::lowest();
|
||||
|
||||
void add(SourceType x)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user