File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/query/storages/index/src Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -288,10 +288,20 @@ 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 = match & stat. min {
292
+ DataValue :: Float64 ( f) if f. is_nan ( ) => & DataValue :: Float64 ( f64:: MIN ) ,
293
+ other => other,
294
+ } ;
295
+
296
+ let max = match & stat. max {
297
+ DataValue :: Float64 ( f) if f. is_nan ( ) => & DataValue :: Float64 ( f64:: MAX ) ,
298
+ other => other,
299
+ } ;
300
+
301
+ let min_col = v. data_type ( ) . create_constant_column ( min, 1 ) ?;
292
302
let variable_left = Some ( ColumnWithField :: new ( min_col, v. clone ( ) ) ) ;
293
303
294
- let max_col = v. data_type ( ) . create_constant_column ( & stat . max , 1 ) ?;
304
+ let max_col = v. data_type ( ) . create_constant_column ( max, 1 ) ?;
295
305
let variable_right = Some ( ColumnWithField :: new ( max_col, v. clone ( ) ) ) ;
296
306
variables. insert ( v. name ( ) . clone ( ) , ( variable_left, variable_right) ) ;
297
307
}
You can’t perform that action at this time.
0 commit comments