[MDEV-21092] EXISTS to IN is not reflected in the optimizer trace Created: 2019-11-20 Updated: 2023-02-03 Resolved: 2022-12-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 11.0.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleksandr Byelkin | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | optimizer_trace | ||
| Issue Links: |
|
||||||||||||
| Description |
|
|
| Comments |
| Comment by Sergei Petrunia [ 2022-11-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
An example of how in-to-exists is traced:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2022-11-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Suggested way of tracing exists-to-in:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2022-11-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Function doing the conversion: Item_exists_subselect::exists2in_processor | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rex Johnston [ 2022-11-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
above test case, world database....
produces
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2022-12-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The patch is in preview-11.0-preview tree |