mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-28926 Add time spent on query optimizer to JSON ANALYZE (#2193)
* Add query optimizer timer to ANALYZE FORMAT=JSON * Adapt tests and results * Change logic to always close the writer after printing query blocks
This commit is contained in:
committed by
Sergei Petrunia
parent
f45f60636f
commit
ad7631bdce
@@ -934,6 +934,7 @@ values (1,2);
|
||||
analyze
|
||||
values (1,2);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
values (1,2);
|
||||
|
||||
@@ -954,16 +955,19 @@ values (5,6)
|
||||
union
|
||||
values (1,2),(3,4);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
select 1,2
|
||||
union
|
||||
values (1,2),(3,4);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
values (1,2),(3,4)
|
||||
union
|
||||
select 1,2;
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
values (5,6)
|
||||
union
|
||||
@@ -976,6 +980,7 @@ values (3,4)
|
||||
union
|
||||
values (1,2);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
select 1,2
|
||||
union
|
||||
@@ -1000,16 +1005,19 @@ values (1,2)
|
||||
union all
|
||||
values (1,2),(3,4);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
values (1,2),(3,4)
|
||||
union all
|
||||
select 1,2;
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
select 1,2
|
||||
union
|
||||
values (1,2),(3,4);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
values (1,2)
|
||||
union all
|
||||
@@ -1022,6 +1030,7 @@ values (3,4)
|
||||
union all
|
||||
values (1,2);
|
||||
|
||||
--source include/analyze-format.inc
|
||||
analyze format=json
|
||||
select 1,2
|
||||
union all
|
||||
|
Reference in New Issue
Block a user