1
0
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:
Sergei Petrunia
2021-12-13 23:46:04 +03:00
parent 08f1c4a2e0
commit 905634dc3f
3 changed files with 28 additions and 0 deletions

View File

@@ -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);