summaryrefslogtreecommitdiff
path: root/myisam/mi_info.c
diff options
context:
space:
mode:
authorOleg Smirnov <olernov@gmail.com>2022-04-13 19:56:34 +0700
committerOleg Smirnov <olernov@gmail.com>2022-04-14 15:37:28 +0700
commitd0977480e3f49083eeb282ae3938ab74415a20ee (patch)
tree1c4750497542b7c7da872b10737dcb11ec74f4b9 /myisam/mi_info.c
parente98013cb5c3695729114a56e1181b23c69801ae0 (diff)
downloadmariadb-git-bb-10.9-MDEV-27699.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