[MDEV-4406] Wrong estimate of records in range for non-nullable column Created: 2013-04-20 Updated: 2014-10-14 Resolved: 2014-10-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.0.1, 10.0.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
If a column is defined with NOT NULL specifier then the estimate for the records in range can be greatly off. The following test case demonstrates this problem:
If we remove specifier NOT NULL
the estimate becomes good:
|
| Comments |
| Comment by Patryk Pomykalski [ 2013-04-20 ] | ||||||||||
|
fix idea: === modified file 'sql/sql_statistics.cc'
| ||||||||||
| Comment by Elena Stepanova [ 2014-10-14 ] | ||||||||||
|
The bug was fixed back then, in 10.0.2:
(Setting fix version to N/A because 10.0.2 is not on the list anymore). |