[MDEV-26885] Estimation for filtered rows less precise with JSON histogram comparing to DOUBLE_PREC (#2) Created: 2021-10-22 Updated: 2021-10-25 Resolved: 2021-10-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
li
So, the actual result set contains 1 row out of 20, DOUBLE_PREC gives filtered=5.3 which is almost correct, JSON gives filtered=12.1 which is further off. Reproducible with MyISAM and InnoDB alike. |
| Comments |
| Comment by Elena Stepanova [ 2021-10-22 ] | ||||||||||||||||||||||||
|
Raised to critical on procedural reasons. Feel free to demote and remove from "must-do" scope (or close if it's not worth fixing). | ||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-10-22 ] | ||||||||||||||||||||||||
|
This is the same issue as | ||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-10-22 ] | ||||||||||||||||||||||||
|
With fix for
| ||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2021-10-22 ] | ||||||||||||||||||||||||
|
Please push it then. We can't really release (and even meaningfully test) the functionality which works only for existing values. |