[MDEV-29957] Optimizer trace: print join prefix as scalar, not array Created: 2022-11-06 Updated: 2023-02-01 Resolved: 2023-02-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | 11.0.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | optimizer_trace | ||
| Description |
|
Troubleshooting join optimization involves examining what happened whenwe were considering certain join prefix, e.g. t1,t2,t3,... Optimizer trace prints the join prefix as plan_prefix array:
Problems with this representation are:
which makes grepp-ing nearly impossible. A counter-argument is, why doesn't one use JSONPath language to search for an "array of t1, t2, t3?" Reply to that: MariaDB's JSONPath dialect doesn't support predicates at all. Even if we did support full JSONPath, searching for array of {t1 t2 t3}would look like this
which is still way behind grepping for "plan_prefix": "t1,t2,t3". |
| Comments |
| Comment by Sergei Petrunia [ 2023-02-01 ] |
|
Fixed in bb-11.0 tree |