mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
return nan when quantileExact with empty float column
This commit is contained in:
parent
9d44eebfe6
commit
65670bc33a
@ -77,7 +77,7 @@ struct QuantileExact
|
||||
return array[n];
|
||||
}
|
||||
|
||||
return Value();
|
||||
return std::numeric_limits<Value>::quiet_NaN();
|
||||
}
|
||||
|
||||
/// Get the `size` values of `levels` quantiles. Write `size` results starting with `result` address.
|
||||
|
@ -72,7 +72,7 @@ struct QuantileExactWeighted
|
||||
size_t size = map.size();
|
||||
|
||||
if (0 == size)
|
||||
return Value();
|
||||
return std::numeric_limits<Value>::quiet_NaN();
|
||||
|
||||
/// Copy the data to a temporary array to get the element you need in order.
|
||||
using Pair = typename Map::value_type;
|
||||
|
Loading…
Reference in New Issue
Block a user