We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef55ae commit 032cb8dCopy full SHA for 032cb8d
src/query/storages/index/src/range_filter.rs
@@ -288,16 +288,14 @@ impl StatColumn {
288
single_point = false;
289
}
290
291
- let min = if let DataValue::Float64(f64::NAN) = stat.min {
292
- &DataValue::Float64(f64::MIN)
293
- } else {
294
- &stat.min
+ let min = match &stat.min {
+ DataValue::Float64(f) if f.is_nan() => &DataValue::Float64(f64::MIN),
+ other => other,
295
};
296
297
- let max = if let DataValue::Float64(f64::NAN) = stat.max {
298
- &DataValue::Float64(f64::MAX)
299
300
- &stat.max
+ let max = match &stat.max {
+ DataValue::Float64(f) if f.is_nan() => &DataValue::Float64(f64::MAX),
301
302
303
let min_col = v.data_type().create_constant_column(min, 1)?;
0 commit comments