File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/query/storages/index/src Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -288,10 +288,22 @@ impl StatColumn {
288
288
single_point = false ;
289
289
}
290
290
291
- let min_col = v. data_type ( ) . create_constant_column ( & stat. min , 1 ) ?;
291
+ let min = if let DataValue :: Float64 ( f64:: NAN ) = stat. min {
292
+ & DataValue :: Float64 ( f64:: MIN )
293
+ } else {
294
+ & stat. min
295
+ } ;
296
+
297
+ let max = if let DataValue :: Float64 ( f64:: NAN ) = stat. max {
298
+ & DataValue :: Float64 ( f64:: MAX )
299
+ } else {
300
+ & stat. max
301
+ } ;
302
+
303
+ let min_col = v. data_type ( ) . create_constant_column ( min, 1 ) ?;
292
304
let variable_left = Some ( ColumnWithField :: new ( min_col, v. clone ( ) ) ) ;
293
305
294
- let max_col = v. data_type ( ) . create_constant_column ( & stat . max , 1 ) ?;
306
+ let max_col = v. data_type ( ) . create_constant_column ( max, 1 ) ?;
295
307
let variable_right = Some ( ColumnWithField :: new ( max_col, v. clone ( ) ) ) ;
296
308
variables. insert ( v. name ( ) . clone ( ) , ( variable_left, variable_right) ) ;
297
309
}
You can’t perform that action at this time.
0 commit comments