[MDEV-19381] ANALYZE SELECT produces r_rows = NULL with UNIQUE index Created: 2019-05-01 Updated: 2019-05-07 Resolved: 2019-05-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Optimizer |
| Affects Version/s: | 10.1.38, 10.3.14, 10.4.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Barrendeitor M. | Assignee: | Alice Sherepa |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | analyze-stmt | ||
| Environment: |
Windows, Debian Linux |
||
| Description |
|
As Knowledge Base says:
By performing a simple query (of a single result) on a single field with a non-unique index, a value of 1.0 is displayed:
However, with a unique index, it produces NULL:
|
| Comments |
| Comment by Alice Sherepa [ 2019-05-07 ] |
|
In the case with unique key - join type=const: there is only one possibly matching row in the table, |