mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-30032: EXPLAIN FORMAT=JSON output: print costs
Basic printout for join and table execution costs.
This commit is contained in:
@ -22,6 +22,7 @@ insert into t3 values (1,1),(2,2),(5,5),(2,2);
|
||||
EXPLAIN (select a,b from t1) intersect all (select c,d from t2) intersect all (select e,f from t3);
|
||||
EXPLAIN extended (select a,b from t1) intersect all (select c,d from t2) intersect all (select e,f from t3);
|
||||
EXPLAIN extended select * from ((select a,b from t1) intersect all (select c,d from t2) intersect all (select e,f from t3)) a;
|
||||
--source include/explain-no-costs.inc
|
||||
EXPLAIN format=json (select a,b from t1) intersect all (select c,d from t2) intersect all (select e,f from t3);
|
||||
--source include/analyze-format.inc
|
||||
ANALYZE format=json (select a,b from t1) intersect all (select c,d from t2) intersect all (select e,f from t3);
|
||||
@ -50,6 +51,7 @@ insert into t3 values (2,2);
|
||||
EXPLAIN (select a,b from t1) intersect all (select c,e from t2,t3);
|
||||
EXPLAIN extended (select a,b from t1) intersect all (select c,e from t2,t3);
|
||||
EXPLAIN extended select * from ((select a,b from t1) intersect all (select c,e from t2,t3)) a;
|
||||
--source include/explain-no-costs.inc
|
||||
EXPLAIN format=json (select a,b from t1) intersect all (select c,e from t2,t3);
|
||||
--source include/analyze-format.inc
|
||||
ANALYZE format=json (select a,b from t1) intersect all (select c,e from t2,t3);
|
||||
@ -325,4 +327,4 @@ select * from t2 where a < 5
|
||||
intersect all
|
||||
select * from t3 where a < 5;
|
||||
|
||||
drop table t1,t2,t3;
|
||||
drop table t1,t2,t3;
|
||||
|
Reference in New Issue
Block a user