mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-27230: Estimation for filtered rows less precise ...
Fix the code in Histogram_json_hb::range_selectivity that handles special cases: a non-inclusive endpoint hitting a bucket boundary...
This commit is contained in:
@@ -1022,6 +1022,7 @@ double Histogram_json_hb::range_selectivity(Field *field, key_range *min_endp,
|
||||
$CONST. Move to the previous bucket.
|
||||
*/
|
||||
idx--;
|
||||
equal= false;
|
||||
}
|
||||
double left_fract= get_left_fract(idx);
|
||||
|
||||
|
Reference in New Issue
Block a user