[MDEV-26750] Estimation for filtered rows is far off with JSON_HB histogram Created: 2021-10-02 Updated: 2022-01-19 Resolved: 2021-10-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.7.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
preview-10.7- |
||
| Issue Links: |
|
||||||||
| Description |
|
Results from preview-10.7- |
| Comments |
| Comment by Elena Stepanova [ 2021-10-02 ] | ||||||||||||||||||||||||||||
|
Raised priority on procedural reasons | ||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-10-18 ] | ||||||||||||||||||||||||||||
|
There are some general considerations about observed histogram precision, but let's tackle this particular case, first. Data distribution:
The histogram seems adequate:
| ||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-10-18 ] | ||||||||||||||||||||||||||||
|
.. but things go wrong at the phase where we are computing the selectivity. |