[MDEV-18949] Analyze show ref(const,const) when we are using index scan Created: 2019-03-16 Updated: 2023-11-10 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Varun Gupta (Inactive) | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The dataset used
ref should be NULL in the ouput as we are using index scan , ref is set when we use ref-access |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2020-06-18 ] | |||||||||||||||||
|
Another test case
So if you look at the rows column in ANALYZE output it should 100, which is incorrect. This is happening for ANALYZE because we reset the ref keyparts to 0 only when the query is an EXPLAIN query. | |||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2020-06-18 ] | |||||||||||||||||
|
Patch |