Fix Parquet stats for Float32 and Float64

This commit is contained in:
Michael Kolupaev 2023-08-04 21:01:07 +00:00
parent e6c3224dfd
commit 4ed86fea2f

View File

@ -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)
{