1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-26849: JSON Histograms: point selectivity estimates are off

.. for non-existent values.

Handle this special case.
This commit is contained in:
Sergei Petrunia
2021-10-22 19:43:19 +03:00
parent f3f78bed85
commit 05877df472
8 changed files with 142 additions and 10 deletions

View File

@ -186,7 +186,8 @@ public:
virtual double point_selectivity(Field *field, key_range *endpoint,
double avg_selection)=0;
double avg_selectivity,
double total_rows)=0;
virtual double range_selectivity(Field *field, key_range *min_endp,
key_range *max_endp)=0;
@ -355,7 +356,8 @@ public:
Estimate selectivity of "col=const" using a histogram
*/
double point_selectivity(Field *field, key_range *endpoint,
double avg_sel) override;
double avg_sel,
double total_rows) override;
};