[MDEV-18741] Optimizer trace: multi-part key ranges are printed incorrectly. Created: 2019-02-26 Updated: 2019-05-31 Resolved: 2019-05-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 10.4.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Note that
But due to a bug in append_range_all_keyparts near is_singlepoint() call the
The fact that date is printed as 0x4ac60f is a separate bug and should also be |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2019-03-11 ] | |||||||||||||||||||||||||||
|
Patch | |||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2019-03-16 ] | |||||||||||||||||||||||||||
|
Note that the upstream is also affected, albeit in a different way. Let's try the following on MySQL-8.0.12-debug:
Note key_len=10. This means, two components are used. Optimizer trace will show that only one key part is used: select * from information_schema.optimizer_trace:
One can see the actual range in /tmp/mysqld.trace:
| |||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2019-03-18 ] | |||||||||||||||||||||||||||
|
Review input provided over email | |||||||||||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-04-03 ] | |||||||||||||||||||||||||||
|
Patch | |||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2019-04-04 ] | |||||||||||||||||||||||||||
|
Review feedback sent. There's still work to do. | |||||||||||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-04-05 ] | |||||||||||||||||||||||||||
|
Updated Patch | |||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2019-05-03 ] | |||||||||||||||||||||||||||
|
Review feedback sent https://lists.launchpad.net/maria-developers/msg11823.html | |||||||||||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-05-24 ] | |||||||||||||||||||||||||||
|
Patch | |||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2019-05-27 ] | |||||||||||||||||||||||||||
|
Review feedback sent. (One small comment, ok to push after that) |