@@ -12960,7 +12960,8 @@ select * from t10 where a<3 and b!=5 and c<10;
a b c
1 1 1
2 2 2
select json_detailed(json_extract(trace, '$**.attaching_conditions_to_tables')) as out1 from information_schema.optimizer_trace;
select json_detailed(json_extract(trace, '$**.attaching_conditions_to_tables')) as out1
from information_schema.optimizer_trace;
out1
[
{
...
...
@@ -12979,7 +12980,6 @@ drop table t10;
#
# MDEV-21092: EXISTS to IN is not reflected in the optimizer trace
#
set @@optimizer_switch = 'exists_to_in=on,in_to_exists=on,semijoin=on,materialization=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on';
set optimizer_trace='enabled=on';
create table t1 (cn_c int, cn_n char(10), cn_a int );
create table t2 (ci_p int, ci_c int );
...
...
@@ -12988,8 +12988,12 @@ SELECT cn_n FROM t1 WHERE (EXISTS (select 1 from t2 where ci_p > 100000 and cn_c
OR (cn_n LIKE 'L%') )
AND cn_a > 1000000;
cn_n
select json_detailed(json_extract(trace, '$.steps[*].join_optimization[0].steps[0].transformation')) from information_schema.optimizer_trace;