diff options
author | Oleg Smirnov <olernov@gmail.com> | 2022-04-13 19:56:34 +0700 |
---|---|---|
committer | Oleg Smirnov <olernov@gmail.com> | 2022-04-14 15:37:28 +0700 |
commit | d0977480e3f49083eeb282ae3938ab74415a20ee (patch) | |
tree | 1c4750497542b7c7da872b10737dcb11ec74f4b9 /myisam/mi_info.c | |
parent | e98013cb5c3695729114a56e1181b23c69801ae0 (diff) | |
download | mariadb-git-d0977480e3f49083eeb282ae3938ab74415a20ee.tar.gz |
MDEV-27699 ANALYZE FORMAT=JSON fields are incorrect for UNION ALL queriesbb-10.9-MDEV-27699
UNION ALL queries are a subject of optimization introduced in MDEV-334
when creation of a temporary table is skipped.
While there is a check for this optimization in Explain_union::print_explain()
there was no such in Explain_union::print_explain_json(). This resulted in
printing irrelevant data like:
"union_result": {
"table_name": "<union2,3>",
"access_type": "ALL",
"r_loops": 0,
"r_rows": null
in case when creation of the temporary table was actually optimized out.
This commits adds a check whether the temporary table was actually created
during the UNION ALL processing and eliminates printing of the irrelevant data.
Diffstat (limited to 'myisam/mi_info.c')
0 files changed, 0 insertions, 0 deletions