Logging: ./mysql-test-run  --force --mem --max-test-fail=50000 --suite=main --big --replay-server
VS config: 
vardir: /optane/dev-git2/13.0-context-replay/mysql-test/var
Checking leftover processes...
Removing old var directory...
Creating var directory '/optane/dev-git2/13.0-context-replay/mysql-test/var'...
 - symlinking 'var' to '/dev/shm/var_auto_Ombx'
Checking supported features...
MariaDB Version 12.3.0-MariaDB-debug
 - SSL connections supported
 - binaries are debug compiled
Using suites: main
Collecting tests...
Installing system database...
Starting replay server...
Copying /optane/dev-git2/13.0-context-replay/mysql-test/var/install.db to /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data...
Starting mysqld on port 10011 with socket /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock...
Command: /optane/dev-git2/13.0-context-replay/sql/mariadbd --no-defaults --datadir=/optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data --port=10011 --socket=/optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock --pid-file=/optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.pid --log-error=/optane/dev-git2/13.0-context-replay/mysql-test/var/log/extra_server_1.err --general-log=1 --general-log-file=/optane/dev-git2/13.0-context-replay/mysql-test/var/log/extra_server_1.log --skip-networking=0 --skip-grant-tables --key-buffer-size=1M --sort-buffer-size=256K --max-heap-table-size=1M --gdb
Server process started with PID 22819
Waiting for server to be ready...
Socket file created: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock
Extra server 1 started successfully
Connection info written to /optane/dev-git2/13.0-context-replay/mysql-test/var/tmp/extra_server_1.info
  Host: 127.0.0.1
  Port: 10011
  Socket: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock
  Datadir: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data
  General log: /optane/dev-git2/13.0-context-replay/mysql-test/var/log/extra_server_1.log
Replay server started on socket: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock

==============================================================================

TEST                                      RESULT   TIME (ms) or COMMENT
--------------------------------------------------------------------------

worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029
main.max_statement_time                  [ disabled ]  cannot possibly work, depends on timing
main.mysql_embedded                      [ disabled ]  Bug#12561297 2011-05-14 Anitha Dependent on PB2 changes - eventum#41836
main.partition_open_files_limit          [ disabled ]  open_files_limit check broken by MDEV-18360
main.read_many_rows_innodb               [ disabled ]  Bug#11748886 2010-11-15 mattiasj report already exists
main.tablespace                          [ disabled ]  disabled in MariaDB (no TABLESPACE table attribute)
main.ipv4_and_ipv6                       [ skipped ]  No IPv6
main.ipv6                                [ skipped ]  No IPv6
main.bind_multiple_addresses_resolution  [ skipped ]  No IPv6
main.bind_address_resolution             [ skipped ]  No IPv6
main.mysql_client_test_nonblock          [ skipped ]  No IPv6
main.mysql_install_db_win_admin          [ skipped ]  Requires admin privileges
main.mysql_client_test_comp              [ skipped ]  No IPv6
main.charset_client_win                  [ skipped ]  Not tested with utf8 command line support
main.mariadb-upgrade-service             [ skipped ]  Requires admin privileges
main.openssl_6975                        [ skipped ]  no or wrong openssl version
main.tlsv13                              [ skipped ]  does not work with OpenSSL <= 1.1.1
main.winservice_basic                    [ skipped ]  Requires admin privileges
main.winservice_i18n                     [ skipped ]  Requires admin privileges
main.connect-abstract                    [ pass ]       
main.connect                             [ pass ]  14319
main.connect2                            [ pass ]     14
main.join_cache_notasan                  [ pass ]     18
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.pool_of_threads                     [ pass ]  16065
main.ssl_encrypted_key 'env'             [ pass ]     26
main.ssl_encrypted_key 'file'            [ pass ]     26
main.ssl_encrypted_key 'pass'            [ pass ]     28
main.optimizer_costs2                    [ pass ]       
main.ipv4_as_ipv6                        [ pass ]    319
main.sp_trans_log                        [ pass ]     38
main.tc_heuristic_recover                [ pass ]   2865
main.merge_alter                         [ pass ]     37
main.mysqlbinlog_row_minimal             [ pass ]    105
main.long_unique_bugs                    [ pass ]    318
main.tmp_space_usage                     [ pass ]  17736
main.stat_tables_rbr                     [ pass ]     40
main.ctype_cp932_binlog_row              [ pass ]     96
main.mysqlbinlog_row_compressed          [ pass ]     83
main.invisible_partition                 [ pass ]     42
main.mysqlbinlog-innodb                  [ pass ]     17
main.partition_innodb_stmt               [ pass ]     20
main.session_tracker_sysvar              [ pass ]     11
main.tmp_table_binlog                    [ pass ]     11
main.mysqlbinlog                         [ pass ]    972
main.mysqlbinlog_stmt_compressed         [ pass ]     62
main.set_statement_notembedded_binlog    [ pass ]     14
main.partition_binlog_stmt               [ pass ]     52
main.backup_lock_binlog                  [ pass ]   2042
main.lock_tables_lost_commit             [ pass ]     11
main.ctype_collate_implicit_def          [ pass ]     69
main.ctype_filesystem                    [ pass ]      3
ReplayTest: Loading context 
main.ps                                  [ pass ]   2123
main.mysqlcheck                          [ pass ]    731
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_varchar                        [ fail ]
        Test ended at 2026-04-26 19:35:01

CURRENT_TEST: main.type_varchar
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_varchar.result	2026-04-24 13:53:12.245386728 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_varchar.reject	2026-04-26 19:35:01.287058773 +0300
@@ -112,7 +112,9 @@
 1	SIMPLE	t1	ref	v	v	257	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	257	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(255);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -136,7 +138,9 @@
 1	SIMPLE	t1	ref	v	v	258	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	258	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(256);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -160,7 +164,9 @@
 1	SIMPLE	t1	ref	v	v	259	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	259	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(257);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -184,7 +190,9 @@
 1	SIMPLE	t1	ref	v	v	260	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	260	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(258);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -208,7 +216,9 @@
 1	SIMPLE	t1	ref	v	v	261	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	261	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(259);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -232,7 +242,9 @@
 1	SIMPLE	t1	ref	v	v	262	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	262	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(258);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -256,7 +268,9 @@
 1	SIMPLE	t1	ref	v	v	261	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	261	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(257);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -280,7 +294,9 @@
 1	SIMPLE	t1	ref	v	v	260	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	260	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(256);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -304,7 +320,9 @@
 1	SIMPLE	t1	ref	v	v	259	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	259	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(255);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -328,7 +346,9 @@
 1	SIMPLE	t1	ref	v	v	258	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	258	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(254);
 select * from t1 where v like 'This is a test' order by v;
 v
@@ -352,7 +372,9 @@
 1	SIMPLE	t1	ref	v	v	257	const	3	Using where; Using index
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	257	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 353.
 alter table t1 change v v varchar(253);
 alter table t1 change v v varchar(254), drop key v;
 alter table t1 change v v varchar(300), add key (v(10));
@@ -378,7 +400,9 @@
 1	SIMPLE	t1	ref	v	v	13	const	4	Using where
 explain select * from t1 where v like 'S%' order by v;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	13	NULL	3	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 drop table t1;
 create table t1 (pkcol varchar(16), othercol varchar(16), primary key (pkcol)) charset=latin1;
 insert into t1 values ('test', 'something');

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_varchar/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_varchar/'
main.upgrade                             [ pass ]     72
main.ctype_ucs2_query_cache              [ pass ]     29
main.ctype_ucs2_def                      [ pass ]     36
main.ctype_utf16_def                     [ pass ]     37
main.ctype_utf32_def                     [ pass ]     19
main.lowercase_utf8                      [ pass ]     28
main.bug47671                            [ pass ]     13
main.ctype_utf8_def_upgrade              [ pass ]     76
main.mysql_upgrade-34014                 [ pass ]    717
main.ctype_utf8mb4_unicode_ci_def        [ pass ]     34
main.ctype_ldml                          [ pass ]    265
main.grant                               [ pass ]    422
main.grant2                              [ pass ]    155
main.grant4                              [ pass ]     58
main.mysqldump                           [ pass ]   9383
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_innodb                [ fail ]
        Test ended at 2026-04-26 19:35:20

CURRENT_TEST: main.ctype_utf8mb4_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4_innodb.result	2026-04-24 13:53:12.065382505 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4_innodb.reject	2026-04-26 19:35:20.419473489 +0300
@@ -1682,10 +1682,14 @@
 Kali Kali 2+4
 EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	53	NULL	4	Using where; Using index
+1	SIMPLE	t1	range	a	a	53	NULL	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	53	const	4	Using where; Using index
+1	SIMPLE	t1	ref	a	a	53	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t2	range	a	a	14	NULL	4	Using where; Using index

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8mb4_innodb/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8mb4_innodb/'
main.mysqldump-max                       [ pass ]    657
main.lock_sync                           [ pass ]    322
main.partition_innodb_semi_consistent    [ pass ]  10072
main.mdl_sync                            [ pass ]   2319
main.crash_commit_before                 [ pass ]    361
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8                          [ fail ]
        Test ended at 2026-04-26 19:35:42

CURRENT_TEST: main.ctype_utf8
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8.result	2026-04-24 13:53:12.061382412 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8.reject	2026-04-26 19:35:42.063942843 +0300
@@ -1567,10 +1567,14 @@
 Kali Kali 2+4
 EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	40	NULL	4	Using where; Using index
+1	SIMPLE	t1	range	a	a	40	NULL	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	40	const	4	Using where; Using index
+1	SIMPLE	t1	ref	a	a	40	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t2	range	a	a	14	NULL	4	Using where; Using index
@@ -5294,7 +5298,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select 'abcd\0081ÂÃÄÅ' AS `abcd\0081ÂÃÄÅ`,_latin1'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `abcd\0081ÂÃÄÅ`,_utf8mb3'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `u`
+Note	1003	select 'abcdÁÂÃÄÅ' AS `abcdÁÂÃÄÅ`,_latin1'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `abcdÃ\0081Ã‚ÃƒÃ„Ã…`,_utf8mb3'abcd\xC3\x81\xC3\x82\xC3\x83\xC3\x84\xC3\x85' AS `u`
 # Test normal utf8
 SET NAMES utf8;
 EXPLAIN EXTENDED SELECT 'abcdÁÂÃÄÅ', _latin1'abcdÁÂÃÄÅ', _utf8'abcdÁÂÃÄÅ';
@@ -5352,7 +5356,9 @@
 ch
 EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
 ch
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
@@ -5371,13 +5377,17 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 ch
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 ch
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
@@ -5421,7 +5431,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 ch
 a
@@ -5444,7 +5456,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 ch
 a
@@ -5473,14 +5487,18 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 ch
 z
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 ch
 z
@@ -5571,7 +5589,9 @@
 ch
 EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
 ch
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
@@ -5590,13 +5610,17 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 ch
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 ch
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
@@ -5640,7 +5664,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 ch
 a
@@ -5663,7 +5689,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 ch
 a
@@ -5692,14 +5720,18 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 ch
 z
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 ch
 z
@@ -5790,7 +5822,9 @@
 ch
 EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	2	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
 ch
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
@@ -5809,13 +5843,17 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 ch
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 ch
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4                       [ fail ]
        Test ended at 2026-04-26 19:35:43

CURRENT_TEST: main.ctype_utf8mb4
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4.result	2026-04-24 13:53:12.061382412 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4.reject	2026-04-26 19:35:43.139966180 +0300
@@ -1592,10 +1592,14 @@
 Kali Kali 2+4
 EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	53	NULL	4	Using where; Using index
+1	SIMPLE	t1	range	a	a	53	NULL	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	53	const	4	Using where; Using index
+1	SIMPLE	t1	ref	a	a	53	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t2	range	a	a	14	NULL	4	Using where; Using index

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8mb4/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8mb4/'
main.implicit_commit                     [ pass ]    216
main.ps_3innodb                          [ pass ]    246
main.strict                              [ pass ]    103
main.bootstrap                           [ pass ]  10094
main.multidelete_engine 'aria'           [ pass ]     30
main.spatial_utility_function_collect 'aria' [ pass ]     22
main.vector 'aria'                       [ pass ]    185
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.mdev-34413-icp-reverse-order 'innodb' [ pass ]    333
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.mdev-36094-rowid-filter-reverse-scan 'innodb' [ pass ]     41
main.multidelete_engine 'innodb'         [ pass ]      9
main.spatial_utility_function_collect 'innodb' [ pass ]     30
main.vector 'innodb'                     [ pass ]    552
main.multidelete_engine 'heap'           [ pass ]     30
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.mdev-34413-icp-reverse-order 'myisam' [ pass ]    133
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.mdev-36094-rowid-filter-reverse-scan 'myisam' [ pass ]     60
main.multidelete_engine 'myisam'         [ pass ]      3
main.spatial_utility_function_collect 'myisam' [ pass ]     17
main.vector 'myisam'                     [ pass ]    137
main.userstat                            [ pass ]   1095
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.group_min_max 'debug'               [ fail ]
        Test ended at 2026-04-26 19:36:09

CURRENT_TEST: main.group_min_max
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/group_min_max.result	2026-04-24 13:55:48.333039060 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/group_min_max.reject	2026-04-26 19:36:09.132530092 +0300
@@ -2464,7 +2464,7 @@
 EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE EXISTS 
 (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1_outer	index	NULL	a	10	NULL	15	Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	range	a	a	5	NULL	6	Using index for group-by
 EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE 
 (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) > 12;
@@ -2486,8 +2486,7 @@
 ON t1_outer1.a = (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) 
 AND t1_outer1.b = t1_outer2.b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1_outer1	ref	a	a	5	const	1	Using where; Using index
-1	PRIMARY	t1_outer2	index	NULL	a	10	NULL	15	Using where; Using index; Using join buffer (flat, BNL join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	range	a	a	5	NULL	2	Using where; Using index for group-by
 EXPLAIN SELECT (SELECT (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2) x
 FROM t1 AS t1_outer) x2 FROM t1 AS t1_outer2;
@@ -3367,7 +3366,7 @@
 EXPLAIN
 SELECT MIN(a), b FROM t1 WHERE a > ( SELECT c FROM t2 WHERE c = 0 ) GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	NULL	b	10	NULL	3	Using where; Using index for group-by
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT MIN(a), b FROM t1 WHERE a > ( SELECT c FROM t2 WHERE c = 0 ) GROUP BY b;
 MIN(a)	b

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.group_min_max-debug/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.group_min_max-debug/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.show_explain                        [ fail ]
        Test ended at 2026-04-26 19:36:16

CURRENT_TEST: main.show_explain
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/show_explain.result	2026-04-24 13:53:12.197385602 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/show_explain.reject	2026-04-26 19:36:15.628671073 +0300
@@ -1298,7 +1298,7 @@
 SELECT max(a+b+c) FROM t1 AS alias1, ( SELECT * FROM t2 ) AS alias 
 WHERE EXISTS ( SELECT * FROM t3 WHERE b = c )  OR a <= 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	14	
+1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	14	Using where
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	20	
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	20	Using where
 set @show_explain_probe_select_id=1;

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.show_explain/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.show_explain/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.sql_safe_updates                    [ pass ]     44
main.enforce_storage_engine_opt          [ pass ]     29
main.log_state_bug33693                  [ pass ]      1
main.log_tables-big                      [ pass ]  163015
main.mysql_client_test                   [ pass ]  36486
main.log_tables                          [ pass ]  15208
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_mat_cost                  [ fail ]
        Test ended at 2026-04-26 19:39:57

CURRENT_TEST: main.subselect_mat_cost
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_mat_cost.result	2026-04-24 13:53:12.221386165 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_mat_cost.reject	2026-04-26 19:39:56.869480849 +0300
@@ -389,6 +389,9 @@
 3	MATERIALIZED	CountryLanguage	ref	PRIMARY	PRIMARY	3	world.Country.Code	4	Using index
 2	MATERIALIZED	Country	index	PRIMARY	PRIMARY	3	NULL	239	Using index
 2	MATERIALIZED	CountryLanguage	ref	PRIMARY	PRIMARY	3	world.Country.Code	4	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country with key_number: doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country with key_number: doesn't exist in list_index_read_costs
 select count(*)
 from CountryLanguage
 where
@@ -501,7 +504,7 @@
 1	PRIMARY	City	ALL	Country	NULL	NULL	NULL	4079	Using temporary; Using filesort
 1	PRIMARY	Country	eq_ref	PRIMARY	PRIMARY	3	world.City.Country	1	Using index
 2	MATERIALIZED	Country	ALL	Name	NULL	NULL	NULL	239	Using where
-Last_query_cost	5.934845
+Last_query_cost	0.024323
 EXPLAIN
 SELECT straight_join City.Name, City.Population
 FROM Country JOIN City ON City.Country = Country.Code
@@ -511,7 +514,7 @@
 1	PRIMARY	Country	index	PRIMARY	PRIMARY	3	NULL	239	Using index; Using temporary; Using filesort
 1	PRIMARY	City	ref	Country	Country	3	world.Country.Code	17	
 2	MATERIALIZED	Country	ALL	Name	NULL	NULL	NULL	239	Using where
-Last_query_cost	7.972473
+Last_query_cost	0.024323
 EXPLAIN
 SELECT City.Name, City.Population
 FROM Country LEFT JOIN City ON City.Country = Country.Code
@@ -521,7 +524,7 @@
 1	PRIMARY	Country	index	NULL	PRIMARY	3	NULL	239	Using index; Using temporary; Using filesort
 1	PRIMARY	City	ref	Country	Country	3	world.Country.Code	17	
 2	MATERIALIZED	Country	ALL	Name	NULL	NULL	NULL	239	Using where
-Last_query_cost	7.972473
+Last_query_cost	0.024323
 SELECT City.Name, City.Population
 FROM City JOIN Country ON City.Country = Country.Code
 GROUP BY City.Name

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_mat_cost/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_mat_cost/'
main.log_state                           [ pass ]  16483
main.create_or_replace                   [ pass ]    257
main.mysql_upgrade-6984                  [ pass ]   2140
main.innodb_load_xa                      [ skipped ]  Need InnoDB plugin
main.innodb_ignore_builtin               [ pass ]      3
main.init_file                           [ pass ]      1
main.init_file_longline_3816             [ pass ]     30
ReplayTest: Loading context 
main.init_connection_query_cache         [ pass ]     38
main.init_connect                        [ pass ]     71
main.ctype_utf8mb4_0900_mem              [ pass ]     50
main.delayed_blob                        [ pass ]     38
main.mysql_upgrade                       [ skipped ]  cannot test minor upgrade for previews
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_cache                          [ fail ]
        Test ended at 2026-04-26 19:40:32

CURRENT_TEST: main.join_cache
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/join_cache.result	2026-04-24 13:53:12.121383819 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/join_cache.reject	2026-04-26 19:40:32.458255854 +0300
@@ -459,8 +459,9 @@
 (City.Population > 5000000 OR City.Name LIKE 'Za%')
 WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	ALL	NULL	NULL	NULL	NULL	239	Using where
-1	SIMPLE	City	hash_index_merge	City_Population,City_Name	#hash#$hj:City_Population,City_Name	3:4,35	world.Country.Code	96	Using sort_union(City_Population,City_Name); Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1059.
 # After Analyze, Query 4
 SELECT Country.Name, Country.Population, City.Name, City.Population
 FROM Country LEFT JOIN City 
@@ -861,8 +862,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 # Part 2, join_cache_level=3, Query 2
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
@@ -939,8 +941,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 # Part 2, join_cache_level=3, Query 6
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
@@ -1069,8 +1072,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 # Part 2, join_cache_level=4, Query 2
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
@@ -1147,8 +1151,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 # Part 2, join_cache_level=4, Query 6
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
@@ -1271,8 +1276,14 @@
 ON City.Country=Country.Code AND City.Population > 5000000
 WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	Name	Name	52	NULL	#	Using index condition; Using where; Rowid-ordered scan
-1	SIMPLE	City	hash_range	Population,Country	#hash#Country:Population	3:4	world.Country.Code	#	Using where; Rowid-ordered scan; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2469.
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country.PRIMARY doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country.Name doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City with key_number:\0002, records:
+ doesn't exist in list_index_read_costs
 # Part 2, join_cache_level=4, Query 10
 SELECT Country.Name, Country.Population, City.Name, City.Population 
 FROM Country LEFT JOIN City
@@ -1301,8 +1312,9 @@
 (City.Population > 5000000 OR City.Name LIKE 'Za%')
 WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	Name	Name	52	NULL	17	Using index condition; Using where; Rowid-ordered scan
-1	SIMPLE	City	hash_index_merge	Population,Country,City_Name	#hash#Country:Population,City_Name	3:4,35	world.Country.Code	96	Using sort_union(Population,City_Name); Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1224.
 # Part 2, join_cache_level=4, City_Name, Query 2
 SELECT Country.Name, Country.Population, City.Name, City.Population
 FROM Country LEFT JOIN City 
@@ -1339,8 +1351,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -1413,8 +1426,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -1536,8 +1550,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -1610,8 +1625,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -1733,8 +1749,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -1807,8 +1824,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -1930,8 +1948,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2004,8 +2023,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2131,8 +2151,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2205,8 +2226,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2235,8 +2257,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2309,8 +2332,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	hash_ALL	Population,Country	#hash#Country	3	world.Country.Code	4079	Using where; Using join buffer (flat, BNLH join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2339,8 +2363,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2413,8 +2438,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2443,8 +2469,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2517,8 +2544,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2547,8 +2575,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2621,8 +2650,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2651,8 +2681,9 @@
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	SIMPLE	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT City.Name, Country.Name FROM City,Country
 WHERE City.Country=Country.Code AND 
 Country.Name LIKE 'L%' AND City.Population > 100000;
@@ -2725,8 +2756,9 @@
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	Country	range	PRIMARY,Name	Name	52	NULL	10	Using index condition; Rowid-ordered scan
-1	PRIMARY	City	ref	Population,Country	Country	3	world.Country.Code	17	Using where; Using join buffer (flat, BKAH join); Key-ordered Rowid-ordered scan
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 454.
 SELECT Name FROM City
 WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND
 City.Population > 100000;
@@ -2958,8 +2990,14 @@
 ON City.Country=Country.Code AND City.Population > 5000000
 WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	Name	Name	302	NULL	15	Using index condition; Using where; Rowid-ordered scan
-1	SIMPLE	City	hash_range	Population,Country	#hash#Country:Population	3:4	world.Country.Code	24	Using where; Rowid-ordered scan; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2567.
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country.PRIMARY doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.Country.Name doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City with key_number:\0002, records:
+ doesn't exist in list_index_read_costs
 EXPLAIN
 SELECT Country.Name, Country.Population, City.Name, City.Population
 FROM Country LEFT JOIN City
@@ -2967,8 +3005,9 @@
 (City.Population > 5000000 OR City.Name LIKE 'Za%')
 WHERE Country.Name LIKE 'C%' AND Country.Population > 10000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	Country	range	Name	Name	302	NULL	15	Using index condition; Using where; Rowid-ordered scan
-1	SIMPLE	City	hash_index_merge	Population,Country,City_Name	#hash#Country:Population,City_Name	3:4,35	world.Country.Code	96	Using sort_union(Population,City_Name); Using where; Using join buffer (flat, BNLH join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1229.
 set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
 set @@use_stat_tables=@save_use_stat_tables;
 set @@join_cache_level=@save_join_cache_level;
@@ -3755,8 +3794,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	7	Using where
 1	SIMPLE	t2	ref	idx	idx	5	test.t1.b	1	
-1	SIMPLE	t4	ref	idx	idx	5	test.t1.c	1	
 1	SIMPLE	t3	ref	idx	idx	5	test.t1.d	1	
+1	SIMPLE	t4	ref	idx	idx	5	test.t1.c	1	
 select t1.a, t1.b, t1.c, t1.d, t2.e, t3.f, t4.g from t1,t2,t3,t4
 where t2.b=t1.b and t3.d=t1.d and t4.c=t1.c;
 a	b	c	d	e	f	g
@@ -3768,8 +3807,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	7	Using where
 1	SIMPLE	t2	ref	idx	idx	5	test.t1.b	1	Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1	SIMPLE	t4	ref	idx	idx	5	test.t1.c	1	Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
 1	SIMPLE	t3	ref	idx	idx	5	test.t1.d	1	Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
+1	SIMPLE	t4	ref	idx	idx	5	test.t1.c	1	Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
 select t1.a, t1.b, t1.c, t1.d, t2.e, t3.f, t4.g from t1,t2,t3,t4
 where t2.b=t1.b and t3.d=t1.d and t4.c=t1.c;
 a	b	c	d	e	f	g
@@ -6059,7 +6098,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
-2	UNCACHEABLE SUBQUERY	t3	system	NULL	NULL	NULL	NULL	1	
+2	UNCACHEABLE SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 select count(*) from t1 straight_join t2
 where c1 = c2-0 and c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1);
 count(*)

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.join_cache/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.join_cache/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.statistics_json                     [ fail ]
        Test ended at 2026-04-26 19:40:36

CURRENT_TEST: main.statistics_json
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/statistics_json.result	2026-04-24 13:53:12.213385977 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/statistics_json.reject	2026-04-26 19:40:36.430342374 +0300
@@ -4504,7 +4504,7 @@
 00000000000000000000711C711C711C711C711CE338E338E338E338E33855555555555555555555C671C671C671C671C671388E388E388E388E388EAAAAAAAAAAAAAAAAAAAA1BC71BC71BC71BC71BC78DE38DE38DE38DE38DE3FFFFFFFFFFFFFFFFFFFF
 explain extended select * from t1_bin where a between 'a-3a' and 'zzzzzzzzz';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1_bin	ALL	NULL	NULL	NULL	NULL	10	58.82	Using where
+1	SIMPLE	t1_bin	ALL	NULL	NULL	NULL	NULL	10	10.00	Using where
 Warnings:
 Note	1003	select `test`.`t1_bin`.`a` AS `a` from `test`.`t1_bin` where `test`.`t1_bin`.`a` between 'a-3a' and 'zzzzzzzzz'
 analyze select * from t1_bin where a between 'a-3a' and 'zzzzzzzzz';

Result content mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.statistics_json/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.statistics_json/'
***Warnings generated in error logs during shutdown after running tests: main.statistics_json

2026-04-26 19:40:34 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted
2026-04-26 19:40:34 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted
2026-04-26 19:40:34 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted
2026-04-26 19:40:34 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: Root JSON element must be a JSON object at offset 1.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: histogram_hb must contain an array at offset 32.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: Expected an object in the buckets array at offset 32.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: "start" element not present at offset 42.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: String or number expected at offset 27.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: "ndv" element not present at offset 57.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: "ndv" element not present at offset 45.
2026-04-26 19:40:36 4 [ERROR] Failed to parse histogram for table test.t1_json: Histogram must have at least one bucket at offset 19.

main.analyze_engine_stats2               [ pass ]   2177
main.analyze_stmt_prefetch_count         [ pass ]   2252
main.host_cache_size_functionality       [ pass ]   1319
main.long_unique_innodb                  [ pass ]   8098
main.insert_debug                        [ pass ]     17
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.innodb_ext_key 'off,unoptimized'    [ fail ]
        Test ended at 2026-04-26 19:41:00

CURRENT_TEST: main.innodb_ext_key
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,off.result~	2026-04-24 14:28:09.505567870 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,off.reject	2026-04-26 19:40:59.774850922 +0300
@@ -209,7 +209,7 @@
 where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
 or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	lineitem	index_merge	PRIMARY,i_l_shipdate,i_l_receiptdate,i_l_orderkey,i_l_orderkey_quantity	i_l_shipdate,PRIMARY,i_l_receiptdate,PRIMARY	#	NULL	#	Using
+1	SIMPLE	lineitem	index_merge	PRIMARY,i_l_shipdate,i_l_receiptdate,i_l_orderkey,i_l_orderkey_quantity	i_l_shipdate,PRIMARY,i_l_receiptdate	#	NULL	#	Using
 flush status;
 select l_orderkey, l_linenumber from lineitem 
 where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-off,unoptimized/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-off,unoptimized/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.innodb_ext_key 'on,unoptimized'     [ fail ]
        Test ended at 2026-04-26 19:41:04

CURRENT_TEST: main.innodb_ext_key
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,on,unoptimized.result~	2026-04-24 14:28:13.541660079 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,on,unoptimized.reject	2026-04-26 19:41:03.746937463 +0300
@@ -284,6 +284,9 @@
 1	SIMPLE	part	range	i_p_retailprice	i_p_retailprice	9	NULL	#	Using where; Using index
 1	SIMPLE	orders	ref	PRIMARY,i_o_orderdate	i_o_orderdate	4	const	#	Using index
 1	SIMPLE	lineitem	ref	i_l_partkey	i_l_partkey	9	dbt3_s001.part.p_partkey,dbt3_s001.orders.o_orderkey	#	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
 flush status;
 select o_orderkey, p_partkey
 from part use index (i_p_retailprice),
@@ -495,7 +498,9 @@
 select * from t1, t3 where t3.col1=t1.a and  t3.col2=t1.a and t3.pk1=t1.a;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
-1	SIMPLE	t3	ref	PRIMARY,col1	col1	12	test.t1.a,test.t1.a,test.t1.a	#	Using index
+1	SIMPLE	t3	ref	PRIMARY,col1	PRIMARY	4	test.t1.a	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t3 with key_number:\0001, records: doesn't exist in list_index_read_costs
 drop table t1,t2,t3;
 #
 # Bug mdev-4340: performance regression with extended_keys=on   

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-on,unoptimized/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-on,unoptimized/'
main.mdev-25830 'unoptimized'            [ pass ]     36
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.innodb_ext_key 'covering,off'       [ fail ]
        Test ended at 2026-04-26 19:41:08

CURRENT_TEST: main.innodb_ext_key
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,off.result~	2026-04-24 14:28:09.505567870 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,off.reject	2026-04-26 19:41:08.431039522 +0300
@@ -209,7 +209,7 @@
 where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000
 or l_receiptdate='1992-07-01' and l_orderkey between 5001 and 6000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	lineitem	index_merge	PRIMARY,i_l_shipdate,i_l_receiptdate,i_l_orderkey,i_l_orderkey_quantity	i_l_shipdate,PRIMARY,i_l_receiptdate,PRIMARY	#	NULL	#	Using
+1	SIMPLE	lineitem	index_merge	PRIMARY,i_l_shipdate,i_l_receiptdate,i_l_orderkey,i_l_orderkey_quantity	i_l_shipdate,PRIMARY,i_l_receiptdate	#	NULL	#	Using
 flush status;
 select l_orderkey, l_linenumber from lineitem 
 where l_shipdate='1992-07-01' and l_orderkey between 1 and 1000

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-covering,off/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-covering,off/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.innodb_ext_key 'covering,on'        [ fail ]
        Test ended at 2026-04-26 19:41:12

CURRENT_TEST: main.innodb_ext_key
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,covering,on.result~	2026-04-24 14:28:22.313860501 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/innodb_ext_key,covering,on.reject	2026-04-26 19:41:12.267123108 +0300
@@ -284,6 +284,9 @@
 1	SIMPLE	part	range	i_p_retailprice	i_p_retailprice	9	NULL	#	Using where; Using index
 1	SIMPLE	orders	ref	PRIMARY,i_o_orderdate	i_o_orderdate	4	const	#	Using index
 1	SIMPLE	lineitem	ref	i_l_partkey	i_l_partkey	9	dbt3_s001.part.p_partkey,dbt3_s001.orders.o_orderkey	#	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
 flush status;
 select o_orderkey, p_partkey
 from part use index (i_p_retailprice),
@@ -495,7 +498,9 @@
 select * from t1, t3 where t3.col1=t1.a and  t3.col2=t1.a and t3.pk1=t1.a;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
-1	SIMPLE	t3	ref	PRIMARY,col1	col1	12	test.t1.a,test.t1.a,test.t1.a	#	Using index
+1	SIMPLE	t3	ref	PRIMARY,col1	PRIMARY	4	test.t1.a	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t3 with key_number:\0001, records: doesn't exist in list_index_read_costs
 drop table t1,t2,t3;
 #
 # Bug mdev-4340: performance regression with extended_keys=on   

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-covering,on/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.innodb_ext_key-covering,on/'
main.mdev-25830 'covering'               [ pass ]     36
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.rowid_filter_innodb 'normal'        [ pass ]   7175
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.rowid_filter_innodb 'ahi'           [ pass ]   7304
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.selectivity_innodb_notembedded      [ fail ]
        Test ended at 2026-04-26 19:41:30

CURRENT_TEST: main.selectivity_innodb_notembedded
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_innodb_notembedded.result	2026-04-24 13:55:48.353039527 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_innodb_notembedded.reject	2026-04-26 19:41:30.079511273 +0300
@@ -127,7 +127,7 @@
           "loops": 1,
           "rows": 100,
           "cost": 0.0322836,
-          "filtered": 53.32928848,
+          "filtered": 28.51019669,
           "attached_condition": "t1.col0 > 1 and t1.col1 > 1 and t1.col2 > 1 and t1.col3 > 1 and t1.col4 > 1 and t1.col5 > 1 and t1.col6 > 1 and t1.col7 > 1 and t1.col8 > 1 and t1.col9 > 1 and t1.col10 > 1 and t1.col11 > 1 and t1.col12 > 1 and t1.col13 > 1 and t1.col14 > 1 and t1.col15 > 1 and t1.col16 > 1 and t1.col17 > 1 and t1.col18 > 1 and t1.col19 > 1 and t1.col20 > 1 and t1.col21 > 1 and t1.col22 > 1 and t1.col23 > 1 and t1.col24 > 1 and t1.col25 > 1 and t1.col26 > 1 and t1.col27 > 1 and t1.col28 > 1 and t1.col29 > 1 and t1.col30 > 1 and t1.col31 > 1 and t1.col32 > 1 and t1.col33 > 1 and t1.col34 > 1 and t1.col35 > 1 and t1.col36 > 1 and t1.col37 > 1 and t1.col38 > 1 and t1.col39 > 1 and t1.col40 > 1 and t1.col41 > 1 and t1.col42 > 1 and t1.col43 > 1 and t1.col44 > 1 and t1.col45 > 1 and t1.col46 > 1 and t1.col47 > 1 and t1.col48 > 1 and t1.col49 > 1 and t1.col50 > 1 and t1.col51 > 1 and t1.col52 > 1 and t1.col53 > 1 and t1.col54 > 1 and t1.col55 > 1 and t1.col56 > 1 and t1.col57 > 1 and t1.col58 > 1 and t1.col59 > 1 and t1.col60 > 1 and t1.col61 > 1 and t1.col62 > 1 and t1.col63 > 1 and t1.col64 > 1 and t1.col65 > 1 and t1.col66 > 1 and t1.col67 > 1 and t1.col68 > 1 and t1.col69 > 1 and t1.col70 > 1 and t1.col71 > 1 and t1.col72 > 1 and t1.col73 > 1 and t1.col74 > 1 and t1.col75 > 1 and t1.col76 > 1 and t1.col77 > 1 and t1.col78 > 1 and t1.col79 > 1 and t1.col80 > 1 and t1.col81 > 1 and t1.col82 > 1 and t1.col83 > 1 and t1.col84 > 1 and t1.col85 > 1 and t1.col86 > 1 and t1.col87 > 1 and t1.col88 > 1 and t1.col89 > 1 and t1.col90 > 1 and t1.col91 > 1 and t1.col92 > 1 and t1.col93 > 1 and t1.col94 > 1 and t1.col95 > 1 and t1.col96 > 1 and t1.col97 > 1 and t1.col98 > 1 and t1.col99 > 1 and t1.col100 > 1 and t1.col101 > 1 and t1.col102 > 1 and t1.col103 > 1 and t1.col104 > 1 and t1.col105 > 1 and t1.col106 > 1 and t1.col107 > 1 and t1.col108 > 1 and t1.col109 > 1 and t1.col110 > 1 and t1.col111 > 1 and t1.col112 > 1 and t1.col113 > 1 and t1.col114 > 1 and t1.col115 > 1 and t1.col116 > 1 and t1.col117 > 1 and t1.col118 > 1 and t1.col119 > 1 and t1.col120 > 1 and t1.col121 > 1 and t1.col122 > 1 and t1.col123 > 1 and t1.col124 > 1 and t1.col125 > 1 and t1.col126 > 1 and t1.col127 > 1 and t1.col128 > 1 and t1.col129 > 1 and t1.col130 > 1 and t1.col131 > 1 and t1.col132 > 1 and t1.col133 > 1 and t1.col134 > 1 and t1.col135 > 1 and t1.col136 > 1 and t1.col137 > 1 and t1.col138 > 1 and t1.col139 > 1 and t1.col140 > 1 and t1.col141 > 1 and t1.col142 > 1 and t1.col143 > 1 and t1.col144 > 1 and t1.col145 > 1 and t1.col146 > 1 and t1.col147 > 1 and t1.col148 > 1 and t1.col149 > 1 and t1.col150 > 1 and t1.col151 > 1 and t1.col152 > 1 and t1.col153 > 1 and t1.col154 > 1 and t1.col155 > 1 and t1.col156 > 1 and t1.col157 > 1 and t1.col158 > 1 and t1.col159 > 1"
         }
       }
@@ -139,14 +139,7 @@
 from 
 information_schema.optimizer_trace;
 JS
-[
-    {
-        "column_name": "col0",
-        "ranges": 
-        ["1 < col0"],
-        "selectivity_from_histogram": 0.996078431
-    }
-]
+NULL
 $query_tbl;
 EXPLAIN
 {
@@ -161,7 +154,7 @@
           "loops": 1,
           "rows": 100,
           "cost": 0.0322836,
-          "filtered": 53.32928848,
+          "filtered": 28.51019669,
           "attached_condition": "t1.col0 > 1 and t1.col1 > 1 and t1.col2 > 1 and t1.col3 > 1 and t1.col4 > 1 and t1.col5 > 1 and t1.col6 > 1 and t1.col7 > 1 and t1.col8 > 1 and t1.col9 > 1 and t1.col10 > 1 and t1.col11 > 1 and t1.col12 > 1 and t1.col13 > 1 and t1.col14 > 1 and t1.col15 > 1 and t1.col16 > 1 and t1.col17 > 1 and t1.col18 > 1 and t1.col19 > 1 and t1.col20 > 1 and t1.col21 > 1 and t1.col22 > 1 and t1.col23 > 1 and t1.col24 > 1 and t1.col25 > 1 and t1.col26 > 1 and t1.col27 > 1 and t1.col28 > 1 and t1.col29 > 1 and t1.col30 > 1 and t1.col31 > 1 and t1.col32 > 1 and t1.col33 > 1 and t1.col34 > 1 and t1.col35 > 1 and t1.col36 > 1 and t1.col37 > 1 and t1.col38 > 1 and t1.col39 > 1 and t1.col40 > 1 and t1.col41 > 1 and t1.col42 > 1 and t1.col43 > 1 and t1.col44 > 1 and t1.col45 > 1 and t1.col46 > 1 and t1.col47 > 1 and t1.col48 > 1 and t1.col49 > 1 and t1.col50 > 1 and t1.col51 > 1 and t1.col52 > 1 and t1.col53 > 1 and t1.col54 > 1 and t1.col55 > 1 and t1.col56 > 1 and t1.col57 > 1 and t1.col58 > 1 and t1.col59 > 1 and t1.col60 > 1 and t1.col61 > 1 and t1.col62 > 1 and t1.col63 > 1 and t1.col64 > 1 and t1.col65 > 1 and t1.col66 > 1 and t1.col67 > 1 and t1.col68 > 1 and t1.col69 > 1 and t1.col70 > 1 and t1.col71 > 1 and t1.col72 > 1 and t1.col73 > 1 and t1.col74 > 1 and t1.col75 > 1 and t1.col76 > 1 and t1.col77 > 1 and t1.col78 > 1 and t1.col79 > 1 and t1.col80 > 1 and t1.col81 > 1 and t1.col82 > 1 and t1.col83 > 1 and t1.col84 > 1 and t1.col85 > 1 and t1.col86 > 1 and t1.col87 > 1 and t1.col88 > 1 and t1.col89 > 1 and t1.col90 > 1 and t1.col91 > 1 and t1.col92 > 1 and t1.col93 > 1 and t1.col94 > 1 and t1.col95 > 1 and t1.col96 > 1 and t1.col97 > 1 and t1.col98 > 1 and t1.col99 > 1 and t1.col100 > 1 and t1.col101 > 1 and t1.col102 > 1 and t1.col103 > 1 and t1.col104 > 1 and t1.col105 > 1 and t1.col106 > 1 and t1.col107 > 1 and t1.col108 > 1 and t1.col109 > 1 and t1.col110 > 1 and t1.col111 > 1 and t1.col112 > 1 and t1.col113 > 1 and t1.col114 > 1 and t1.col115 > 1 and t1.col116 > 1 and t1.col117 > 1 and t1.col118 > 1 and t1.col119 > 1 and t1.col120 > 1 and t1.col121 > 1 and t1.col122 > 1 and t1.col123 > 1 and t1.col124 > 1 and t1.col125 > 1 and t1.col126 > 1 and t1.col127 > 1 and t1.col128 > 1 and t1.col129 > 1 and t1.col130 > 1 and t1.col131 > 1 and t1.col132 > 1 and t1.col133 > 1 and t1.col134 > 1 and t1.col135 > 1 and t1.col136 > 1 and t1.col137 > 1 and t1.col138 > 1 and t1.col139 > 1 and t1.col140 > 1 and t1.col141 > 1 and t1.col142 > 1 and t1.col143 > 1 and t1.col144 > 1 and t1.col145 > 1 and t1.col146 > 1 and t1.col147 > 1 and t1.col148 > 1 and t1.col149 > 1 and t1.col150 > 1 and t1.col151 > 1 and t1.col152 > 1 and t1.col153 > 1 and t1.col154 > 1 and t1.col155 > 1 and t1.col156 > 1 and t1.col157 > 1 and t1.col158 > 1 and t1.col159 > 1"
         }
       }
@@ -173,14 +166,7 @@
 from 
 information_schema.optimizer_trace;
 JS
-[
-    {
-        "column_name": "col159",
-        "ranges": 
-        ["1 < col159"],
-        "selectivity_from_histogram": 0.996078431
-    }
-]
+NULL
 # 
 # Check if not being able to infer anything for the first MAX_KEY
 #   columns doesn't prevent further inferences.
@@ -202,7 +188,7 @@
           "loops": 1,
           "rows": 100,
           "cost": 0.0322836,
-          "filtered": 99.60784149,
+          "filtered": 99.21875,
           "attached_condition": "(t1.col1 > 1 or t1.col2 > 1 or t1.col3 > 1 or t1.col4 > 1 or t1.col5 > 1 or t1.col6 > 1 or t1.col7 > 1 or t1.col8 > 1 or t1.col9 > 1 or t1.col10 > 1 or t1.col11 > 1 or t1.col12 > 1 or t1.col13 > 1 or t1.col14 > 1 or t1.col15 > 1 or t1.col16 > 1 or t1.col17 > 1 or t1.col18 > 1 or t1.col19 > 1 or t1.col20 > 1 or t1.col21 > 1 or t1.col22 > 1 or t1.col23 > 1 or t1.col24 > 1 or t1.col25 > 1 or t1.col26 > 1 or t1.col27 > 1 or t1.col28 > 1 or t1.col29 > 1 or t1.col30 > 1 or t1.col31 > 1 or t1.col32 > 1 or t1.col33 > 1 or t1.col34 > 1 or t1.col35 > 1 or t1.col36 > 1 or t1.col37 > 1 or t1.col38 > 1 or t1.col39 > 1 or t1.col40 > 1 or t1.col41 > 1 or t1.col42 > 1 or t1.col43 > 1 or t1.col44 > 1 or t1.col45 > 1 or t1.col46 > 1 or t1.col47 > 1 or t1.col48 > 1 or t1.col49 > 1 or t1.col50 > 1 or t1.col51 > 1 or t1.col52 > 1 or t1.col53 > 1 or t1.col54 > 1 or t1.col55 > 1 or t1.col56 > 1 or t1.col57 > 1 or t1.col58 > 1 or t1.col59 > 1 or t1.col60 > 1 or t1.col61 > 1 or t1.col62 > 1 or t1.col63 > 1 or t1.col64 > 1 or t1.col65 > 1 or t1.col66 > 1 or t1.col67 > 1 or t1.col68 > 1 or t1.col69 > 1 or t1.col70 > 1 or t1.col71 > 1 or t1.col72 > 1 or t1.col73 > 1 or t1.col74 > 1 or t1.col75 > 1 or t1.col76 > 1 or t1.col77 > 1 or t1.col78 > 1 or t1.col79 > 1 or t1.col80 > 1 or t1.col81 > 1 or t1.col82 > 1 or t1.col83 > 1 or t1.col84 > 1 or t1.col85 > 1 or t1.col86 > 1 or t1.col87 > 1 or t1.col88 > 1 or t1.col89 > 1 or t1.col90 > 1 or t1.col91 > 1 or t1.col92 > 1 or t1.col93 > 1 or t1.col94 > 1 or t1.col95 > 1 or t1.col96 > 1 or t1.col97 > 1 or t1.col98 > 1 or t1.col99 > 1 or t1.col100 > 1 or t1.col101 > 1 or t1.col102 > 1 or t1.col103 > 1 or t1.col104 > 1 or t1.col105 > 1 or t1.col106 > 1 or t1.col107 > 1 or t1.col108 > 1 or t1.col109 > 1 or t1.col110 > 1 or t1.col111 > 1 or t1.col112 > 1 or t1.col113 > 1 or t1.col114 > 1 or t1.col115 > 1 or t1.col116 > 1 or t1.col117 > 1 or t1.col118 > 1 or t1.col119 > 1 or t1.col120 > 1 or t1.col121 > 1 or t1.col122 > 1 or t1.col123 > 1 or t1.col124 > 1 or t1.col125 > 1 or t1.col126 > 1 or t1.col127 > 1 or t1.col128 > 1 or t1.col129 > 1 or t1.col130 > 1 or t1.col131 > 1 or t1.col132 > 1 or t1.col133 > 1 or t1.col134 > 1 or t1.col135 > 1 or t1.col136 > 1 or t1.col137 > 1 or t1.col138 > 1 or t1.col139 > 1 or t1.col140 > 1 or t1.col141 > 1 or t1.col142 > 1 or t1.col143 > 1 or t1.col144 > 1 or t1.col145 > 1 or t1.col146 > 1 or t1.col147 > 1 or t1.col148 > 1 or t1.col149 > 1 or t1.col150 > 1 or t1.col151 > 1 or t1.col152 > 1 or t1.col153 > 1 or t1.col154 > 1 or t1.col155 > 1 or t1.col156 > 1 or t1.col157 > 1 or t1.col158 > 1) and t1.col159 > 1"
         }
       }
@@ -214,16 +200,7 @@
 from 
 information_schema.optimizer_trace;
 JS
-[
-    [
-        {
-            "column_name": "col159",
-            "ranges": 
-            ["1 < col159"],
-            "selectivity_from_histogram": 0.996078431
-        }
-    ]
-]
+NULL
 set optimizer_trace=@trace_tmp;
 drop table t1;
 #

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity_innodb_notembedded/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity_innodb_notembedded/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Lost connection to server during query
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/costs.test"
ReplayTest: At line 114
ReplayTest: Warning - failed to reset optimizer_replay_context: 2006 Server has gone away
ReplayTest: Loading context 
ReplayTest: Query error: Server has gone away
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/costs.test"
ReplayTest: At line 146
ReplayTest: Warning - failed to reset optimizer_replay_context: 2006 Server has gone away
main.costs                               [ fail ]
        Test ended at 2026-04-26 19:41:34

CURRENT_TEST: main.costs
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/costs.result	2026-04-24 13:55:48.321038780 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/costs.reject	2026-04-26 19:41:33.979596274 +0300
@@ -7,87 +7,87 @@
 explain select sum(e) as "table_scan" from t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	12	
-Last_query_cost	0.012556
+Last_query_cost	0.024323
 explain select sum(a) as "index scan" from t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	index	NULL	PRIMARY	4	NULL	12	Using index
-Last_query_cost	0.007441
+Last_query_cost	0.024323
 #
 # Range scans should be used if we don't examine all rows in the table
 #
 explain select count(a) from t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
-Last_query_cost	0.000000
+Last_query_cost	0.024323
 explain select count(*) from t1 where a > 0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	PRIMARY	PRIMARY	4	NULL	12	Using where; Using index
-Last_query_cost	0.002877
+Last_query_cost	0.024323
 explain select count(*) from t1 where a > 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	PRIMARY	PRIMARY	4	NULL	12	Using where; Using index
-Last_query_cost	0.002877
+Last_query_cost	0.024323
 explain select count(*) from t1 where a > 2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	PRIMARY	PRIMARY	4	NULL	11	Using where; Using index
-Last_query_cost	0.002747
+Last_query_cost	0.024323
 #
 # Shorter indexes are preferred over longer indexes
 #
 explain select sum(a+b) from t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	index	NULL	ba	9	NULL	12	Using index
-Last_query_cost	0.007441
+Last_query_cost	0.024323
 explain select count(*) from t1 where b between 5 and 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	ba,bda	ba	5	NULL	6	Using where; Using index
-Last_query_cost	0.002097
+Last_query_cost	0.024323
 explain select sum(b+c) from t1 where b between 5 and 6 and c between 5 and 6;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	ba,bda,cba,cb	cba	10	NULL	2	Using where; Using index
-Last_query_cost	0.001577
+Last_query_cost	0.024323
 # Cost of 'd' should be slightly smaller as key 'ba' is longer than 'd'
 explain select count(*) from t1 where b > 6;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	ba,bda	ba	5	NULL	5	Using where; Using index
-Last_query_cost	0.001967
+Last_query_cost	0.024323
 explain select count(*) from t1 where d > 6;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	d	d	5	NULL	5	Using where; Using index
-Last_query_cost	0.001967
+Last_query_cost	0.024323
 #
 # Check covering index usage
 #
 explain select a,b,c from t1 where a=b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	index	NULL	cba	14	NULL	12	Using where; Using index
-Last_query_cost	0.007441
+Last_query_cost	0.024323
 #
 # Prefer ref keys over ranges
 #
 explain select count(*) from t1 where b=2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	ba,bda	ba	5	const	2	Using index
-Last_query_cost	0.001141
+Last_query_cost	0.024323
 explain select count(*) from t1 where b=2 and c=2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	ba,bda,cba,cb	cba	10	const,const	2	Using index
-Last_query_cost	0.001141
+Last_query_cost	0.024323
 explain select count(*) from t1 where b=3 and c between 3 and 4;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	ba,bda,cba,cb	cba	10	NULL	2	Using where; Using index
-Last_query_cost	0.001577
+Last_query_cost	0.024323
 #
 # Prefer eq keys over ref keys
 #
 explain select a,b,e from t1 where a=10 or a=11;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	PRIMARY	PRIMARY	4	NULL	2	Using index condition
-Last_query_cost	0.003126
+Last_query_cost	0.024323
 explain select a,b,e from t1 where d=10 or d=11;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	d	d	5	NULL	2	Using index condition
-Last_query_cost	0.003291
+Last_query_cost	0.024323
 drop table t1;
 #
 # MDEV-30328 Assertion `avg_io_cost != 0.0 || index_cost.io + row_cost.io == 0' failed in
@@ -120,8 +120,7 @@
 KEY `long_suppkey` (l_partkey, l_suppkey, l_linenumber, l_extra) )
 ENGINE= InnoDB;
 explain select count(*) from test.t1 force index (l_suppkey) where l_suppkey >= 0 and l_partkey >=0;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	l_suppkey	l_suppkey	10	NULL	1	Using where; Using index
+ReplayTest: Query error: Lost connection to server during query
 drop table t1;
 set global InnoDB.optimizer_disk_read_ratio=@save;
 #
@@ -153,48 +152,6 @@
 b >= date '1993-06-01' and b < date '1993-06-01' + interval '3' month and
 exists (select * from t2 where e = t1.a and g < h)
 group by c;
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "cost": 12.53886553,
-    "filesort": {
-      "sort_key": "t1.c",
-      "temporary_table": {
-        "nested_loop": [
-          {
-            "table": {
-              "table_name": "t1",
-              "access_type": "ALL",
-              "possible_keys": ["PRIMARY", "t1_ix1"],
-              "loops": 1,
-              "rows": 7000,
-              "cost": 1.1518548,
-              "filtered": 100,
-              "attached_condition": "t1.b >= DATE'1993-06-01' and t1.b < <cache>(DATE'1993-06-01' + interval '3' month)"
-            }
-          },
-          {
-            "table": {
-              "table_name": "t2",
-              "access_type": "ref",
-              "possible_keys": ["PRIMARY"],
-              "key": "PRIMARY",
-              "key_length": "4",
-              "used_key_parts": ["e"],
-              "ref": ["test.t1.a"],
-              "loops": 7000,
-              "rows": 1,
-              "cost": 6.7528092,
-              "filtered": 100,
-              "attached_condition": "t2.g < t2.h",
-              "first_match": "t1"
-            }
-          }
-        ]
-      }
-    }
-  }
-}
+ReplayTest: Query error: Server has gone away
 set max_heap_table_size=@save_mhts;
 drop table t1, t2;

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.costs/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.costs/'
mysql-test-run: *** WARNING: Replay server unresponsive before test 'main.delete_innodb'
mysql-test-run: restarting replay server...
Removing existing datadir: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data
Copying /optane/dev-git2/13.0-context-replay/mysql-test/var/install.db to /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data...
Starting mysqld on port 19011 with socket /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock...
Command: /optane/dev-git2/13.0-context-replay/sql/mariadbd --no-defaults --datadir=/optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data --port=19011 --socket=/optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock --pid-file=/optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.pid --log-error=/optane/dev-git2/13.0-context-replay/mysql-test/var/log/extra_server_1.err --general-log=1 --general-log-file=/optane/dev-git2/13.0-context-replay/mysql-test/var/log/extra_server_1.log --skip-networking=0 --skip-grant-tables --key-buffer-size=1M --sort-buffer-size=256K --max-heap-table-size=1M --gdb
Server process started with PID 26694
Waiting for server to be ready...
Socket file created: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock
Extra server 1 started successfully
Connection info written to /optane/dev-git2/13.0-context-replay/mysql-test/var/tmp/extra_server_1.info
  Host: 127.0.0.1
  Port: 19011
  Socket: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock
  Datadir: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/data
  General log: /optane/dev-git2/13.0-context-replay/mysql-test/var/log/extra_server_1.log
mysql-test-run: replay server restarted (pid 26694)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.delete_innodb                       [ pass ]   7150
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_join_order                [ pass ]   1204
main.large_pages                         [ pass ]     10
main.flush_block_commit_notembedded      [ pass ]   1080
main.drop_table_force                    [ pass ]     51
main.alter_table_online_debug 'binlog'   [ pass ]   1768
main.innodb_mysql_lock2                  [ pass ]   1159
main.alter_table_online 'binlog'         [ pass ]    146
main.bug39022                            [ pass ]     18
main.commit_1innodb                      [ pass ]    925
main.create_select                       [ pass ]     21
main.sp_trans                            [ pass ]    237
main.xa_binlog                           [ pass ]     33
main.partition_exchange                  [ pass ]    216
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.stat_tables_innodb                  [ fail ]
        Test ended at 2026-04-26 19:42:11

CURRENT_TEST: main.stat_tables_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/stat_tables_innodb.result	2026-04-24 13:53:12.213385977 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/stat_tables_innodb.reject	2026-04-26 19:42:11.256408852 +0300
@@ -83,6 +83,9 @@
 1	SIMPLE	customer	ref	PRIMARY,i_c_nationkey	i_c_nationkey	5	dbt3_s001.supplier.s_nationkey	6	Using index
 1	SIMPLE	orders	ref|filter	PRIMARY,i_o_orderdate,i_o_custkey	i_o_custkey|i_o_orderdate	5|4	dbt3_s001.customer.c_custkey	15 (14%)	Using where; Using rowid filter
 1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
 select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
 from customer, orders, lineitem, supplier, nation, region
 where c_custkey = o_custkey and l_orderkey = o_orderkey
@@ -214,6 +217,9 @@
 1	SIMPLE	customer	ref	PRIMARY,i_c_nationkey	i_c_nationkey	5	dbt3_s001.supplier.s_nationkey	6	Using index
 1	SIMPLE	orders	ref|filter	PRIMARY,i_o_orderdate,i_o_custkey	i_o_custkey|i_o_orderdate	5|4	dbt3_s001.customer.c_custkey	15 (14%)	Using where; Using rowid filter
 1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
 select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue
 from customer, orders, lineitem, supplier, nation, region
 where c_custkey = o_custkey and l_orderkey = o_orderkey
@@ -252,6 +258,15 @@
 1	SIMPLE	orders	eq_ref	PRIMARY,i_o_orderdate,i_o_custkey	PRIMARY	4	dbt3_s001.lineitem.l_orderkey	1	Using where
 1	SIMPLE	customer	eq_ref	PRIMARY,i_c_nationkey	PRIMARY	4	dbt3_s001.orders.o_custkey	1	Using where
 1	SIMPLE	n1	eq_ref	PRIMARY,i_n_regionkey	i_n_regionkey	9	dbt3_s001.region.r_regionkey,dbt3_s001.customer.c_nationkey	1	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0002, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0002, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
 select o_year,
 sum(case when nation = 'UNITED STATES' then volume else 0 end) /
 sum(volume) as mkt_share
@@ -283,12 +298,16 @@
 group by nation, o_year
 order by nation, o_year desc;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	supplier	index	PRIMARY,i_s_nationkey	i_s_nationkey	5	NULL	10	Using where; Using index; Using temporary; Using filesort
+1	SIMPLE	part	ALL	PRIMARY	NULL	NULL	NULL	200	Using where; Using temporary; Using filesort
+1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	4	dbt3_s001.part.p_partkey	3	
+1	SIMPLE	supplier	eq_ref	PRIMARY,i_s_nationkey	PRIMARY	4	dbt3_s001.partsupp.ps_suppkey	1	Using where
 1	SIMPLE	nation	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	
-1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	i_ps_suppkey	4	dbt3_s001.supplier.s_suppkey	70	
-1	SIMPLE	part	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.partsupp.ps_partkey	1	Using where
-1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.supplier.s_suppkey	8	
+1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.part.p_partkey,dbt3_s001.partsupp.ps_suppkey	8	
 1	SIMPLE	orders	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.lineitem.l_orderkey	1	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
 EXPLAIN EXTENDED select nation, o_year, sum(amount) as sum_profit
 from (select n_name as nation, 
 extract(year from o_orderdate) as o_year,
@@ -301,14 +320,17 @@
 group by nation, o_year
 order by nation, o_year desc;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	supplier	index	PRIMARY,i_s_nationkey	i_s_nationkey	5	NULL	10	100.00	Using where; Using index; Using temporary; Using filesort
+1	SIMPLE	part	ALL	PRIMARY	NULL	NULL	NULL	200	100.00	Using where; Using temporary; Using filesort
+1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	4	dbt3_s001.part.p_partkey	3	100.00	
+1	SIMPLE	supplier	eq_ref	PRIMARY,i_s_nationkey	PRIMARY	4	dbt3_s001.partsupp.ps_suppkey	1	100.00	Using where
 1	SIMPLE	nation	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	100.00	
-1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	i_ps_suppkey	4	dbt3_s001.supplier.s_suppkey	70	100.00	
-1	SIMPLE	part	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.partsupp.ps_partkey	1	100.00	Using where
-1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.supplier.s_suppkey	8	100.00	
+1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.part.p_partkey,dbt3_s001.partsupp.ps_suppkey	8	100.00	
 1	SIMPLE	orders	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.lineitem.l_orderkey	1	100.00	
 Warnings:
-Note	1003	select `dbt3_s001`.`nation`.`n_name` AS `nation`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) AS `o_year`,sum(`dbt3_s001`.`lineitem`.`l_extendedprice` * (1 - `dbt3_s001`.`lineitem`.`l_discount`) - `dbt3_s001`.`partsupp`.`ps_supplycost` * `dbt3_s001`.`lineitem`.`l_quantity`) AS `sum_profit` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`lineitem` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`orders` join `dbt3_s001`.`nation` where `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`orders`.`o_orderkey` = `dbt3_s001`.`lineitem`.`l_orderkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`part`.`p_name` like '%green%' group by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc order by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0004, records:u\0017 doesn't exist in list_index_read_costs
+Note	1003	select `dbt3_s001`.`nation`.`n_name` AS `nation`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) AS `o_year`,sum(`dbt3_s001`.`lineitem`.`l_extendedprice` * (1 - `dbt3_s001`.`lineitem`.`l_discount`) - `dbt3_s001`.`partsupp`.`ps_supplycost` * `dbt3_s001`.`lineitem`.`l_quantity`) AS `sum_profit` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`lineitem` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`orders` join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`orders`.`o_orderkey` = `dbt3_s001`.`lineitem`.`l_orderkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`part`.`p_name` like '%green%' group by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc order by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc
 select nation, o_year, sum(amount) as sum_profit
 from (select n_name as nation, 
 extract(year from o_orderdate) as o_year,
@@ -389,7 +411,10 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	part	range	PRIMARY,i_p_retailprice	i_p_retailprice	9	NULL	1	Using where; Using index
 1	SIMPLE	orders	ref	PRIMARY,i_o_orderdate	i_o_orderdate	4	const	1	Using index
-1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_orderkey,i_l_orderkey_quantity	i_l_partkey	9	dbt3_s001.part.p_partkey,dbt3_s001.orders.o_orderkey	1	Using index
+1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.lineitem with key_number:\0003, records:u\0017 doesn't exist in list_index_read_costs
 select o_orderkey, p_partkey
 from part, lineitem, orders
 where p_retailprice > 1100 and o_orderdate='1997-01-01' 
@@ -437,7 +462,7 @@
 SET use_stat_tables='preferably';
 EXPLAIN SELECT * FROM t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	
+1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	0	Const row not found
 DROP TABLE t1;
 set use_stat_tables=@save_use_stat_tables;
 #

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.stat_tables_innodb/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.stat_tables_innodb/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.selectivity_innodb                  [ fail ]
        Test ended at 2026-04-26 19:42:22

CURRENT_TEST: main.selectivity_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_innodb.result	2026-04-24 13:55:48.353039527 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_innodb.reject	2026-04-26 19:42:21.552633339 +0300
@@ -79,7 +79,7 @@
 s_acctbal desc, n_name, s_name, p_partkey;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	region	ALL	PRIMARY	NULL	NULL	NULL	5	20.00	Using where; Using temporary; Using filesort
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	0.63	Using where; Using join buffer (flat, BNL join)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	4.17	Using where; Using join buffer (flat, BNL join)
 1	PRIMARY	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	4	dbt3_s001.part.p_partkey	3	100.00	Using where
 1	PRIMARY	supplier	eq_ref	PRIMARY,i_s_nationkey	PRIMARY	4	dbt3_s001.partsupp.ps_suppkey	1	100.00	Using where
 1	PRIMARY	nation	eq_ref	PRIMARY,i_n_regionkey	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	100.00	Using where
@@ -602,8 +602,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	nation	ALL	PRIMARY	NULL	NULL	NULL	25	4.00	Using where; Using temporary; Using filesort
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	7.03	Using where
-1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	7.11	Using where; FirstMatch(supplier)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	10.71	Using where
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	4.67	Using where; FirstMatch(supplier)
 4	DEPENDENT SUBQUERY	lineitem	ref	i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey	8	14.40	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
@@ -657,12 +657,15 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	nation	ALL	PRIMARY	NULL	NULL	NULL	25	4.00	Using where; Using temporary; Using filesort
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	7.81	Using where
-1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	6.40	Using where; FirstMatch(supplier)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	25.00	Using where
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	2.00	Using where; FirstMatch(supplier)
 4	DEPENDENT SUBQUERY	lineitem	ref	i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey	8	14.40	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.part with key_number: doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.part with key_number: doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.part with key_number: doesn't exist in list_index_read_costs
 Note	1003	/* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
 select sql_calc_found_rows
 s_name, s_address
@@ -712,12 +715,15 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	nation	ALL	PRIMARY	NULL	NULL	NULL	25	4.00	Using where; Using temporary; Using filesort
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	7.81	Using where
-1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	6.40	Using where; FirstMatch(supplier)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	25.00	Using where
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	2.00	Using where; FirstMatch(supplier)
 4	DEPENDENT SUBQUERY	lineitem	ref	i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey	8	14.40	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_suppkey' of SELECT #4 was resolved in SELECT #2
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.part with key_number: doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.part with key_number: doesn't exist in list_index_read_costs
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.part with key_number: doesn't exist in list_index_read_costs
 Note	1003	/* select#1 */ select sql_calc_found_rows `dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`supplier`.`s_address` AS `s_address` from `dbt3_s001`.`supplier` semi join (`dbt3_s001`.`part` join `dbt3_s001`.`partsupp`) join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_name` = 'UNITED STATES' and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`partsupp`.`ps_availqty` > <expr_cache><`dbt3_s001`.`partsupp`.`ps_partkey`,`dbt3_s001`.`partsupp`.`ps_suppkey`>((/* select#4 */ select 0.5 * sum(`dbt3_s001`.`lineitem`.`l_quantity`) from `dbt3_s001`.`lineitem` where `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_shipDATE` >= <cache>(cast('1993-01-01' as date)) and `dbt3_s001`.`lineitem`.`l_shipDATE` < <cache>(cast('1993-01-01' as date) + interval '1' year))) and `dbt3_s001`.`part`.`p_name` like 'g%' order by `dbt3_s001`.`supplier`.`s_name` limit 10
 select sql_calc_found_rows
 s_name, s_address
@@ -841,7 +847,7 @@
 set optimizer_use_condition_selectivity=4;
 explain extended select * from t1 where a=0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1025	0.78	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1025	50.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
 drop table t1;
@@ -2136,14 +2142,14 @@
 explain extended
 select * from t1 where a like '%99%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	1.00	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	100.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` like '%99%'
 # Must have same filtered as above
 explain extended
 select * from t1 where a like '%99%' and (b is null or b is not null);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	1.00	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	100.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` like '%99%' and (`test`.`t1`.`b` is null or `test`.`t1`.`b` is not null)
 drop table t1;

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity_innodb/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity_innodb/'
main.alter_table_online_debug 'nobinlog' [ pass ]   1754
ReplayTest: Loading context 
main.partition_explicit_prune            [ pass ]    441
main.partition_icp                       [ pass ]    805
ReplayTest: Loading context 
main.partition_innodb2                   [ pass ]     41
main.repair                              [ pass ]   1610
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.multi_update                        [ fail ]
        Test ended at 2026-04-26 19:42:33

CURRENT_TEST: main.multi_update
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/multi_update.result	2026-04-24 13:53:12.137384194 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/multi_update.reject	2026-04-26 19:42:32.664875639 +0300
@@ -1213,28 +1213,9 @@
 {
   "query_block": {
     "select_id": 1,
-    "nested_loop": [
-      {
-        "table": {
-          "table_name": "t2",
-          "partitions": ["Relevant"],
-          "access_type": "system",
-          "possible_keys": ["PRIMARY"],
-          "rows": 1,
-          "filtered": 100
-        }
-      },
-      {
-        "table": {
-          "table_name": "t1",
-          "partitions": ["Relevant"],
-          "access_type": "system",
-          "possible_keys": ["PRIMARY"],
-          "rows": 1,
-          "filtered": 100
-        }
-      }
-    ]
+    "table": {
+      "message": "Impossible WHERE noticed after reading const tables"
+    }
   }
 }
 # Expecting partition "Archive"
@@ -1243,28 +1224,9 @@
 {
   "query_block": {
     "select_id": 1,
-    "nested_loop": [
-      {
-        "table": {
-          "table_name": "t2",
-          "partitions": ["Archive"],
-          "access_type": "system",
-          "possible_keys": ["PRIMARY"],
-          "rows": 1,
-          "filtered": 100
-        }
-      },
-      {
-        "table": {
-          "table_name": "t1",
-          "partitions": ["Archive"],
-          "access_type": "system",
-          "possible_keys": ["PRIMARY"],
-          "rows": 1,
-          "filtered": 100
-        }
-      }
-    ]
+    "table": {
+      "message": "Impossible WHERE noticed after reading const tables"
+    }
   }
 }
 DROP TABLES t1, t2;

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.multi_update/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.multi_update/'
ReplayTest: Loading context 
main.query_cache                         [ pass ]  25160
main.alter_table_locknone                [ pass ]     85
main.auto_increment_ranges_innodb        [ pass ]    138
main.innodb_mysql_sync                   [ pass ]  15241
main.mysql_upgrade-20228                 [ pass ]    695
main.mysql_upgrade_to_100502             [ pass ]    740
main.partition_alter                     [ pass ]    136
main.partition_cache                     [ pass ]     76
main.partition_cache_innodb              [ pass ]    641
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_datatype                  [ fail ]
        Test ended at 2026-04-26 19:43:19

CURRENT_TEST: main.partition_datatype
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_datatype.result	2026-04-24 13:53:12.165384851 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_datatype.reject	2026-04-26 19:43:19.553898290 +0300
@@ -567,7 +567,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-26 23:00:00' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSK,p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	11	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSK	ALL	NULL	NULL	NULL	NULL	11	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-26 22:59:59' ORDER BY a, tz;
 a	tz
@@ -609,7 +609,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-26 23:00:00' and '2011-03-28 00:00:00' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	9	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSK,p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	9	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 23:00:00' ORDER BY a, tz;
 a	tz
@@ -626,7 +626,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 23:00:00' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1	ALL	NULL	NULL	NULL	NULL	18	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	18	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 22:59:59' ORDER BY a, tz;
 a	tz
@@ -642,7 +642,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-01 00:00:00' and '2011-10-29 22:59:59' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSD-1,p-2011-MSD-2	ALL	NULL	NULL	NULL	NULL	15	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	15	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-29 22:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
 a	tz
@@ -659,7 +659,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-29 22:59:59' and '2011-10-31 00:00:00' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2	ALL	NULL	NULL	NULL	NULL	13	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2	ALL	NULL	NULL	NULL	NULL	13	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-29 23:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
 a	tz
@@ -674,7 +674,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-10-29 23:00:00' and '2011-10-31 00:00:00' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2012-MSK-1,p-2012-MSK-2	ALL	NULL	NULL	NULL	NULL	7	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2	ALL	NULL	NULL	NULL	NULL	7	Using where; Using filesort
 # Test end range changes
 DELETE FROM t2 WHERE a = 0;
 INSERT IGNORE INTO t2 VALUES ('1970-01-01 00:00:00', 'UTC');
@@ -973,7 +973,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 03:00:00' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSK,p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	11	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSK,p-2011-MSD-1,p-2011-MSD-2,p-2012-MSK-1,p-2012-MSK-2,pEnd,pMax	ALL	NULL	NULL	NULL	NULL	11	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 01:59:59' ORDER BY a, tz;
 a	tz
@@ -983,7 +983,7 @@
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-01 00:00:00' and '2011-03-27 01:59:59' ORDER BY a, tz;
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	p-2011-MSK	ALL	NULL	NULL	NULL	NULL	2	Using where; Using filesort
+1	SIMPLE	t2	p-2011-MSK,p-2011-MSD-1	ALL	NULL	NULL	NULL	NULL	2	Using where; Using filesort
 SELECT * FROM t2
 WHERE a BETWEEN '2011-03-26 01:59:59' and '2011-03-28 00:00:00' ORDER BY a, tz;
 a	tz

Result length mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_datatype/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_datatype/'
main.partition_debug_sync                [ pass ]     15
main.partition_geometries                [ pass ]     43
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_innodb                    [ pass ]   3222
main.partition_innodb_plugin             [ pass ]   1060
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_mrr_innodb                [ fail ]
        Test ended at 2026-04-26 19:43:26

CURRENT_TEST: main.partition_mrr_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_mrr_innodb.result	2026-04-24 13:53:12.169384945 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_mrr_innodb.reject	2026-04-26 19:43:26.062040264 +0300
@@ -130,7 +130,7 @@
 explain extended select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = t2.a-1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t2	range	idx	idx	5	NULL	2	100.00	Using where; Using index
-1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	25.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	24.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t0`.`tp` AS `tp`,`test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t0`.`c` AS `c`,`test`.`t2`.`a` AS `a` from `test`.`t0` join `test`.`t2` where `test`.`t0`.`a` = `test`.`t2`.`a` and `test`.`t2`.`a` in (3,4) and `test`.`t0`.`b` / 10 = `test`.`t2`.`a` - 1
 select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = t2.a-1;
@@ -164,7 +164,7 @@
 explain extended select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = 4;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t2	range	idx	idx	5	NULL	2	100.00	Using where; Using index
-1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	25.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	24.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t0`.`tp` AS `tp`,`test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t0`.`c` AS `c`,`test`.`t2`.`a` AS `a` from `test`.`t0` join `test`.`t2` where `test`.`t0`.`a` = `test`.`t2`.`a` and `test`.`t2`.`a` in (3,4) and `test`.`t0`.`b` / 10 = 4
 select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = 4;

Result content mismatch

 - saving '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_mrr_innodb/' to '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_mrr_innodb/'
main.truncate-stale-6500                 [ pass ]     26
main.type_datetime_hires                 [ pass ]     71
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.view                                [ pass ]   1796
main.information_schema_all_engines      [ pass ]   9552
main.bug46760                            [ pass ]     11
main.row-checksum-old                    [ pass ]     30
main.row-checksum                        [ pass ]     25
main.backup_locks                        [ pass ]  48870
main.backup_interaction                  [ pass ]    223
main.backup_lock                         [ pass ]   3563
main.backup_priv                         [ pass ]     12
main.backup_stages                       [ pass ]  15291
main.backup_syntax                       [ pass ]     13
main.innodb_mysql_lock                   [ pass ]   2054
main.mdl                                 [ pass ]     26
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.index_merge_innodb                  [ fail ]
        Test ended at 2026-04-26 19:45:19

CURRENT_TEST: main.index_merge_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/index_merge_innodb.result	2026-04-24 13:53:12.109383538 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/index_merge_innodb.reject	2026-04-26 19:45:19.028505655 +0300
@@ -827,7 +827,7 @@
 INSERT INTO t1 SELECT seq, seq, seq from seq_1_to_100;
 EXPLAIN SELECT * FROM t1 WHERE a='1' OR b < 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	PRIMARY,b	NULL	NULL	NULL	100	Using where
+1	SIMPLE	t1	index_merge	PRIMARY,b	b,PRIMARY	5,3074	NULL	5	Using sort_union(b,PRIMARY); Using where
 SELECT * FROM t1 WHERE a='1' OR b < 5;
 a	b	c
 1	1	1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.index_merge_innodb/'
ReplayTest: Loading context 
main.rowid_filter_innodb_debug           [ pass ]    261
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Restrictions imposed on recursive definitions are violated for table 'destinations'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/cte_recursive.test"
ReplayTest: At line 2767
ReplayTest: Loading context 
ReplayTest: Loading context 
main.cte_recursive                       [ fail ]
        Test ended at 2026-04-26 19:45:27

CURRENT_TEST: main.cte_recursive
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/cte_recursive.result	2026-04-24 13:55:48.321038780 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/cte_recursive.reject	2026-04-26 19:45:27.100681894 +0300
@@ -882,7 +882,7 @@
 3	RECURSIVE UNION	<derived2>	ALL	NULL	NULL	NULL	NULL	12	100.00	Using where; Using join buffer (flat, BNL join)
 NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
 Warnings:
-Note	1003	with recursive ancestors as (/* select#2 */ select `test`.`folks`.`id` AS `id`,`test`.`folks`.`name` AS `name`,`test`.`folks`.`dob` AS `dob`,`test`.`folks`.`father` AS `father`,`test`.`folks`.`mother` AS `mother` from `test`.`folks` where `test`.`folks`.`name` = 'Me' and `test`.`folks`.`dob` = DATE'2000-01-01' union /* select#3 */ select `p`.`id` AS `id`,`p`.`name` AS `name`,`p`.`dob` AS `dob`,`p`.`father` AS `father`,`p`.`mother` AS `mother` from `test`.`folks` `p` join `ancestors` `a` where `a`.`father` = `p`.`id` or `a`.`mother` = `p`.`id`)/* select#1 */ select `ancestors`.`id` AS `id`,`ancestors`.`name` AS `name`,`ancestors`.`dob` AS `dob`,`ancestors`.`father` AS `father`,`ancestors`.`mother` AS `mother` from `ancestors`
+Note	1003	with recursive ancestors as (/* select#2 */ select `test`.`folks`.`id` AS `id`,`test`.`folks`.`name` AS `name`,`test`.`folks`.`dob` AS `dob`,`test`.`folks`.`father` AS `father`,`test`.`folks`.`mother` AS `mother` from `test`.`folks` where `test`.`folks`.`name` = 'Me' and `test`.`folks`.`dob` = DATE'2000-01-01' union /* select#3 */ select `test`.`p`.`id` AS `id`,`test`.`p`.`name` AS `name`,`test`.`p`.`dob` AS `dob`,`test`.`p`.`father` AS `father`,`test`.`p`.`mother` AS `mother` from `test`.`folks` `p` join `ancestors` `a` where `a`.`father` = `test`.`p`.`id` or `a`.`mother` = `test`.`p`.`id`)/* select#1 */ select `ancestors`.`id` AS `id`,`ancestors`.`name` AS `name`,`ancestors`.`dob` AS `dob`,`ancestors`.`father` AS `father`,`ancestors`.`mother` AS `mother` from `ancestors`
 # recursive spec with two anchor selects and two recursive ones 
 with recursive
 ancestor_ids (id)
@@ -3215,15 +3215,7 @@
 where r.city=b.departure and b.arrival not in (select city from destinations)
 )
 select * from destinations;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	16	100.00	
-2	DERIVED	a	ALL	NULL	NULL	NULL	NULL	16	100.00	Using where
-3	RECURSIVE UNION	b	ALL	NULL	NULL	NULL	NULL	16	100.00	Using where
-3	RECURSIVE UNION	<derived2>	ref	key0	key0	35	test.b.departure	1	100.00	
-4	DEPENDENT SUBQUERY	<derived2>	ALL	NULL	NULL	NULL	NULL	16	100.00	Using where
-NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-Warnings:
-Note	1003	with recursive destinations(`city`,`legs`) as (/* select#2 */ select `test`.`a`.`arrival` AS `city`,1 AS `legs` from `test`.`flights` `a` where `test`.`a`.`departure` = 'Cairo' union /* select#3 */ select `test`.`b`.`arrival` AS `arrival`,`r`.`legs` + 1 AS `r.legs + 1` from `destinations` `r` join `test`.`flights` `b` where `r`.`city` = `test`.`b`.`departure` and !(<in_optimizer>(`test`.`b`.`arrival`,<exists>(/* select#4 */ select `destinations`.`city` from `destinations` where trigcond(`test`.`b`.`arrival` = `destinations`.`city` or `destinations`.`city` is null) having trigcond(`destinations`.`city` is null)))))/* select#1 */ select `destinations`.`city` AS `city`,`destinations`.`legs` AS `legs` from `destinations`
+ReplayTest: Query error: Restrictions imposed on recursive definitions are violated for table 'destinations'
 set standard_compliant_cte=default;
 drop table flights;
 #
@@ -3911,13 +3903,7 @@
 where (dt.a1) in (with recursive cte as (select a2 from t2 where a2='2'
    union select tt2.a2 from t2 tt2 join cte on tt2.b1=cte.a2)
 select a2 from cte);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	Using where
-1	PRIMARY	<derived3>	ref	key0	key0	23	test.t1.a1	1	FirstMatch(t1)
-3	DERIVED	t2	const	PRIMARY	PRIMARY	22	const	1	Using index
-4	RECURSIVE UNION	<derived3>	ALL	NULL	NULL	NULL	NULL	2	Using where
-4	RECURSIVE UNION	tt2	ref	b1	b1	23	cte.a2	1	
-NULL	UNION RESULT	<union3,4>	ALL	NULL	NULL	NULL	NULL	NULL	
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 analyze format=json select fv
 from (select t1.a1, f1(t1.a2) fv from t1) dt
 where (dt.a1) in (with recursive cte as (select a2 from t2 where a2='2'
@@ -4110,9 +4096,7 @@
 FROM cte JOIN t3 ON t3.tm BETWEEN cte.st AND cte.fn)
 SELECT t1.* FROM t1 JOIN cte2 USING (YEAR) JOIN cte3 USING (YEAR);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	system	NULL	NULL	NULL	NULL	1	100.00	
-1	PRIMARY	<derived5>	ref	key0	key0	5	const	0	100.00	
-1	PRIMARY	<derived4>	ref	key0	key0	5	const	0	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DERIVED	t1	system	NULL	NULL	NULL	NULL	1	100.00	
 3	RECURSIVE UNION	t1	system	NULL	NULL	NULL	NULL	1	100.00	
 3	RECURSIVE UNION	<derived2>	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
@@ -4122,7 +4106,7 @@
 5	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	2	100.00	
 5	DERIVED	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
-Note	1003	with recursive cte as (/* select#2 */ select year(`test`.`t1`.`d1`) AS `YEAR`,`test`.`t1`.`d1` AS `st`,`test`.`t1`.`d1` + interval 1 month AS `fn` from `test`.`t1` union all /* select#3 */ select year(`cte`.`st` + interval 1 month) AS `YEAR(cte.st + INTERVAL 1 MONTH)`,`cte`.`st` + interval 1 month AS `cte.st + INTERVAL 1 MONTH`,`test`.`t1`.`d2` + interval 1 day AS `t1.d2 + INTERVAL 1 DAY` from `cte` join `test`.`t1` where `cte`.`st` + interval 1 month < `test`.`t1`.`d2`), cte2 as (/* select#4 */ select `cte`.`YEAR` AS `YEAR`,count(0) AS `COUNT(*)` from `cte` join `test`.`t2` where `test`.`t2`.`tm` between `cte`.`st` and `cte`.`fn`), cte3 as (/* select#5 */ select `cte`.`YEAR` AS `YEAR`,count(0) AS `COUNT(*)` from `cte` join `test`.`t3` where `test`.`t3`.`tm` between `cte`.`st` and `cte`.`fn`)/* select#1 */ select 2018 AS `YEAR`,'2018-01-01' AS `d1`,'2018-09-20' AS `d2` from `cte2` join `cte3` where `cte3`.`YEAR` = 2018 and `cte2`.`YEAR` = 2018
+Note	1003	with recursive cte as (/* select#2 */ select year(`test`.`t1`.`d1`) AS `YEAR`,`test`.`t1`.`d1` AS `st`,`test`.`t1`.`d1` + interval 1 month AS `fn` from `test`.`t1` union all /* select#3 */ select year(`cte`.`st` + interval 1 month) AS `YEAR(cte.st + INTERVAL 1 MONTH)`,`cte`.`st` + interval 1 month AS `cte.st + INTERVAL 1 MONTH`,`test`.`t1`.`d2` + interval 1 day AS `t1.d2 + INTERVAL 1 DAY` from `cte` join `test`.`t1` where `cte`.`st` + interval 1 month < `test`.`t1`.`d2`), cte2 as (/* select#4 */ select `cte`.`YEAR` AS `YEAR`,count(0) AS `COUNT(*)` from `cte` join `test`.`t2` where `test`.`t2`.`tm` between `cte`.`st` and `cte`.`fn`), cte3 as (/* select#5 */ select `cte`.`YEAR` AS `YEAR`,count(0) AS `COUNT(*)` from `cte` join `test`.`t3` where `test`.`t3`.`tm` between `cte`.`st` and `cte`.`fn`)/* select#1 */ select NULL AS `YEAR`,'2018-01-01' AS `d1`,NULL AS `d2` from `cte2` join `cte3` where `cte3`.`YEAR` = NULL and `cte2`.`YEAR` = NULL
 PREPARE stmt FROM "WITH RECURSIVE
 cte AS
 (SELECT  YEAR(t1.d1) AS YEAR, t1.d1 AS st, t1.d1 + INTERVAL 1 MONTH AS fn
@@ -4464,11 +4448,7 @@
 explain with recursive cte as
 (select * from db1.t1 union select * from (select * from cte) as t)
 select * from cte;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	3	
-2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	3	
-3	RECURSIVE UNION	<derived2>	ALL	NULL	NULL	NULL	NULL	3	
-NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
 prepare stmt from "with recursive cte as
 (select * from db1.t1 union select * from (select * from cte) as t)
 select * from cte";

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.cte_recursive/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_mat.test"
ReplayTest: At line 111
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_mat.test"
ReplayTest: At line 124
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_sj2_mat                   [ fail ]
        Test ended at 2026-04-26 19:45:29

CURRENT_TEST: main.subselect_sj2_mat
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_mat.result	2026-04-24 13:53:12.225386259 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_mat.reject	2026-04-26 19:45:28.776718489 +0300
@@ -968,9 +968,9 @@
 WHERE a = d AND ( pk < 2 OR d = 'z' )
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	index	PRIMARY,d	d	9	NULL	17	Using where; Using index; LooseScan
-1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; FirstMatch(t2)
+1	PRIMARY	t2	index_merge	PRIMARY,d	d,PRIMARY	4,4	NULL	2	Using sort_union(d,PRIMARY); Using where; Start temporary
 1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	
+1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; End temporary
 Warnings:
 Note	1105	Cannot use key `d` part[0] for lookup: `test`.`t2`.`d` of type `varchar` = "`t1`.`a`" of type `int`
 explain
@@ -980,8 +980,8 @@
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	index_merge	PRIMARY,d	d,PRIMARY	4,4	NULL	2	Using sort_union(d,PRIMARY); Using where; Start temporary
-1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index
-1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	End temporary
+1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	
+1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; End temporary
 Warnings:
 Note	1105	Cannot use key `d` part[0] for lookup: `test`.`t2`.`d` of type `varchar` = "`t1`.`a`" of type `int`
 SELECT * FROM t1 WHERE b IN (
@@ -1500,10 +1500,7 @@
 WHERE  t1.cat_id = t3.cat_id AND 
 t3.cat_id IN (SELECT cat_id FROM t2) AND 
 t3.sack_id = 33479 AND t3.kit_id = 6;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t3	ref	PRIMARY	PRIMARY	5	const,const	5	Using index
-1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.cat_id	1	Using index
-1	PRIMARY	t2	ref	cat_id	cat_id	4	test.t3.cat_id	2	Using where; Using index; FirstMatch(t1)
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 SELECT count(*) FROM t1, t3 
 WHERE  t1.cat_id = t3.cat_id AND 
 t3.cat_id IN (SELECT cat_id FROM t2) AND 
@@ -1516,10 +1513,7 @@
 WHERE  t1.cat_id = t3.cat_id AND 
 t3.cat_id IN (SELECT cat_id FROM t4) AND 
 t3.sack_id = 33479 AND t3.kit_id = 6;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t3	ref	PRIMARY	PRIMARY	5	const,const	5	Using index
-1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.cat_id	1	Using index
-1	PRIMARY	t4	ref	cat_id	cat_id	4	test.t3.cat_id	1	Using index; FirstMatch(t1)
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 SELECT count(*) FROM t1, t3 
 WHERE  t1.cat_id = t3.cat_id AND 
 t3.cat_id IN (SELECT cat_id FROM t4) AND 

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_sj2_mat/'
main.analyze_engine_stats 'slow_query_log_off' [ pass ]   1412
main.analyze_engine_stats 'slow_query_log_on' [ pass ]   1422
main.stat_tables_innodb_debug            [ pass ]     20
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.delete_use_source                   [ fail ]
        Test ended at 2026-04-26 19:45:51

CURRENT_TEST: main.delete_use_source
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/delete_use_source.result	2026-04-24 13:53:12.069382599 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/delete_use_source.reject	2026-04-26 19:45:50.605195113 +0300
@@ -49,8 +49,13 @@
 start transaction;
 explain delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	c1	c1	4	NULL	600	Using index condition; Using where
+1	PRIMARY	t1	range	c1	c1	4	NULL	1	Using index condition; Using where
 2	DEPENDENT SUBQUERY	b	ref	c1	c1	4	test.t1.c1	167	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.c1 doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.c1 doesn't exist in list of range contexts
 delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
 affected rows: 1
 delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 limit 1;
@@ -67,6 +72,11 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	range	c1	c1	4	NULL	#	Using index condition; Using where
 2	DEPENDENT SUBQUERY	b	ref	c1	c1	4	test.t1.c1	#	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.c1 doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.c1 doesn't exist in list of range contexts
 delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 ;
 affected rows: 500
 select count(*) from v1 where c1=0;
@@ -244,8 +254,7 @@
 explain delete from t1 using t1,t2
 where t1.c2 = t2.c2 and t1.c1 > 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	1	
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	7	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 delete from t1 using t1,t2
 where t1.c2 = t2.c2 and t1.c1 > 1;
 select * from t1;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.delete_use_source/'
main.sum_distinct-big                    [ pass ]  180514
ReplayTest: Loading context 
ReplayTest: Loading context 
main.analyze                             [ pass ]    167
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.delete                              [ fail ]
        Test ended at 2026-04-26 19:49:05

CURRENT_TEST: main.delete
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/delete.result	2026-04-24 13:55:48.325038873 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/delete.reject	2026-04-26 19:49:05.465452274 +0300
@@ -584,7 +584,7 @@
 create temporary table t select * from t1;
 explain delete from t1 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	8	Deleting all rows
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	0	Deleting all rows
 delete from t1 order by c2;
 select *from t1;
 c1	c2	c3

Result content mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.delete/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.derived_opt                         [ fail ]
        Test ended at 2026-04-26 19:49:09

CURRENT_TEST: main.derived_opt
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/derived_opt.result	2026-04-24 13:55:48.329038967 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/derived_opt.reject	2026-04-26 19:49:08.625521344 +0300
@@ -670,18 +670,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "DT",
-        "key_name": "key0",
-        "key_parts": 1,
-        "select": 
-        [
-            "group_list_in_key",
-            "unhandled query"
-        ]
-    }
-]
+NULL
 # view/cte/derived merged inside our derived table
 create view v1 as select * from t1;
 explain
@@ -742,16 +731,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "DT",
-        "key_name": "key0",
-        "key_parts": 2,
-        "select": 
-        ["group_list_in_key"],
-        "rec_per_key_estimate": 1
-    }
-]
+NULL
 explain
 select * from
 t2,
@@ -786,19 +766,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "DT",
-        "key_name": "key0",
-        "key_parts": 1,
-        "select": 
-        [
-            "distinct_in_query_block",
-            "distinct_in_query_block"
-        ],
-        "rec_per_key_estimate": 2
-    }
-]
+NULL
 drop table t1, t2;
 create table t1
 (
@@ -861,24 +829,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "dt",
-        "key_name": "key0",
-        "key_parts": 2,
-        "select": 
-        ["group_list_in_key"],
-        "rec_per_key_estimate": 1
-    },
-    {
-        "table_alias": "dt",
-        "key_name": "key1",
-        "key_parts": 2,
-        "select": 
-        ["group_list_in_key"],
-        "rec_per_key_estimate": 1
-    }
-]
+NULL
 # union with distinct rows
 explain
 select * from t1
@@ -901,30 +852,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "dt",
-        "key_name": "key1",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "group_list_in_key"
-        ],
-        "rec_per_key_estimate": 2
-    },
-    {
-        "table_alias": "dt",
-        "key_name": "key2",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "group_list_in_key"
-        ],
-        "rec_per_key_estimate": 2
-    }
-]
+NULL
 # union without distinct rows
 explain
 select * from t1
@@ -946,30 +874,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "dt",
-        "key_name": "key0",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "group_list_in_key"
-        ],
-        "rec_per_key_estimate": 2
-    },
-    {
-        "table_alias": "dt",
-        "key_name": "key1",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "group_list_in_key"
-        ],
-        "rec_per_key_estimate": 2
-    }
-]
+NULL
 # union without distinct rows with simple non grouping 2nd select
 explain
 select * from t1
@@ -991,28 +896,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "dt",
-        "key_name": "key0",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "unhandled query"
-        ]
-    },
-    {
-        "table_alias": "dt",
-        "key_name": "key1",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "unhandled query"
-        ]
-    }
-]
+NULL
 # intersect
 explain
 select * from t1
@@ -1035,30 +919,7 @@
 json_detailed(json_extract(trace, '$**.infer_derived_key_statistics')) as t
 from information_schema.optimizer_trace;
 t
-[
-    {
-        "table_alias": "dt",
-        "key_name": "key1",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "group_list_in_key"
-        ],
-        "rec_per_key_estimate": 2
-    },
-    {
-        "table_alias": "dt",
-        "key_name": "key2",
-        "key_parts": 2,
-        "select": 
-        [
-            "group_list_in_key",
-            "group_list_in_key"
-        ],
-        "rec_per_key_estimate": 2
-    }
-]
+NULL
 drop table t1, t2, t3, t4;
 #
 # End of 11.4 tests

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.derived_opt/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.derived_split_innodb                [ pass ]    718
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.desc_index_min_max                  [ pass ]    237
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.desc_index_range                    [ pass ]    417
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.group_min_max_innodb                [ fail ]
        Test ended at 2026-04-26 19:49:13

CURRENT_TEST: main.group_min_max_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/group_min_max_innodb.result	2026-04-24 13:55:48.333039060 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/group_min_max_innodb.reject	2026-04-26 19:49:13.221621802 +0300
@@ -324,7 +324,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
 1	PRIMARY	<derived2>	ref	key0	key0	6	test.t1.b	#	
-2	DERIVED	t2	range	a	a	58	NULL	#	Using index for group-by; Using temporary; Using filesort
+2	DERIVED	t2	range	NULL	a	58	NULL	#	Using index for group-by; Using temporary; Using filesort
 SELECT t1.a
 FROM (SELECT a FROM t2 GROUP BY a ORDER BY COUNT(DISTINCT b) LIMIT 1) dt
 JOIN t1 ON dt.a=t1.b;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.group_min_max_innodb/'
main.group_min_max_notembedded           [ pass ]     57
main.index_merge_innodb_notembedded      [ pass ]    151
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.information_schema                  [ pass ]   3923
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.innodb_icp                          [ pass ]    960
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_optimizer                      [ pass ]    180
main.log_slow_innodb                     [ pass ]    207
main.opt_context_load_stats_innodb       [ pass ]    450
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_ctx_replay_innodb_complement    [ pass ]    501
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_ctx_replay_innodb_preferably    [ pass ]    486
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_split_materialized        [ pass ]    731
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.optimizer_costs                     [ pass ]    180
ReplayTest: Loading context 
main.optimizer_costs_innodb              [ pass ]    746
ReplayTest: Loading context 
main.optimizer_crash                     [ pass ]    122
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.order_by_innodb                     [ pass ]   1339
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.order_by_optimizer_innodb           [ pass ]    378
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.range                               [ fail ]
        Test ended at 2026-04-26 19:49:34

CURRENT_TEST: main.range
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/range.result	2026-04-24 13:55:48.353039527 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/range.reject	2026-04-26 19:49:34.242081274 +0300
@@ -637,13 +637,9 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a	a	11	const	2	Using index condition
 explain select * from t1 where a='aaa' collate latin1_bin;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	11	const	2	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
 explain select * from t1 where a='aaa' collate latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	a	NULL	NULL	NULL	9	Using where
-Warnings:
-Note	1105	Cannot use key `a` part[0] for lookup: `test`.`t1`.`a` of collation `latin1_swedish_ci` = "'aaa' collate latin1_german1_ci" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 drop table t1;
 CREATE TABLE t1 (
 `CLIENT` char(3) character set latin1 collate latin1_bin NOT NULL default '000',
@@ -2128,13 +2124,17 @@
 explain
 SELECT * FROM t1 WHERE fd='😁';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ix_fd	ix_fd	63	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ix_fd doesn't exist in list of range contexts
 SELECT * FROM t1 WHERE fd='😁';
 id	fd
 # The following must not use range access:
 explain select count(*) from t1 where fd <'😁';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ix_fd	ix_fd	63	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ix_fd	ix_fd	63	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ix_fd doesn't exist in list of range contexts
 select count(*) from t1 where fd <'😁';
 count(*)
 40960
@@ -2384,7 +2384,9 @@
 INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e');
 EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	a	a	33	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.a doesn't exist in list of range contexts
 DROP TABLE t1;
 #
 # MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in 
@@ -3725,7 +3727,7 @@
 # no filesort, rows should be 75 not 500
 explain SELECT * FROM t1,t2 WHERE t1.id=t2.id AND t1.col=2 ORDER BY t2.id LIMIT 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	key1	key1	5	NULL	74	Using index condition; Using where
+1	SIMPLE	t1	range	key1	key1	5	NULL	74	Using where
 1	SIMPLE	t2	ref	id	id	5	test.t1.id	2	
 SELECT * FROM t1,t2 WHERE t1.id=t2.id AND t1.col=2 ORDER BY t2.id LIMIT 10;
 id	col	id	col

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.range/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.range_innodb                        [ pass ]   8936
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.range_mrr_icp                       [ fail ]
        Test ended at 2026-04-26 19:49:50

CURRENT_TEST: main.range_mrr_icp
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/range_mrr_icp.result	2026-04-24 13:55:48.353039527 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/range_mrr_icp.reject	2026-04-26 19:49:50.290432089 +0300
@@ -640,13 +640,9 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a	a	11	const	2	Using index condition
 explain select * from t1 where a='aaa' collate latin1_bin;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	11	const	2	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
 explain select * from t1 where a='aaa' collate latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	a	NULL	NULL	NULL	9	Using where
-Warnings:
-Note	1105	Cannot use key `a` part[0] for lookup: `test`.`t1`.`a` of collation `latin1_swedish_ci` = "'aaa' collate latin1_german1_ci" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 drop table t1;
 CREATE TABLE t1 (
 `CLIENT` char(3) character set latin1 collate latin1_bin NOT NULL default '000',
@@ -2131,13 +2127,17 @@
 explain
 SELECT * FROM t1 WHERE fd='😁';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ix_fd	ix_fd	63	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ix_fd doesn't exist in list of range contexts
 SELECT * FROM t1 WHERE fd='😁';
 id	fd
 # The following must not use range access:
 explain select count(*) from t1 where fd <'😁';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ix_fd	ix_fd	63	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ix_fd	ix_fd	63	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ix_fd doesn't exist in list of range contexts
 select count(*) from t1 where fd <'😁';
 count(*)
 40960
@@ -2387,7 +2387,9 @@
 INSERT INTO t1 VALUES ('a'),('b'),('c'),('d'),('e');
 EXPLAIN SELECT * FROM t1 WHERE a<=>'😎';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	a	a	33	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.a doesn't exist in list of range contexts
 DROP TABLE t1;
 #
 # MDEV-10185: Assertion `tree1->keys[key_no] && tree2->keys[key_no]' failed in 
@@ -3723,7 +3725,7 @@
 # no filesort, rows should be 75 not 500
 explain SELECT * FROM t1,t2 WHERE t1.id=t2.id AND t1.col=2 ORDER BY t2.id LIMIT 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	key1	key1	5	NULL	74	Using index condition; Using where
+1	SIMPLE	t1	range	key1	key1	5	NULL	74	Using where
 1	SIMPLE	t2	ref	id	id	5	test.t1.id	2	
 SELECT * FROM t1,t2 WHERE t1.id=t2.id AND t1.col=2 ORDER BY t2.id LIMIT 10;
 id	col	id	col

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.range_mrr_icp/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.range_vs_index_merge_innodb         [ fail ]
        Test ended at 2026-04-26 19:50:03

CURRENT_TEST: main.range_vs_index_merge_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/range_vs_index_merge_innodb.result	2026-04-24 13:53:12.185385321 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/range_vs_index_merge_innodb.reject	2026-04-26 19:50:02.926708330 +0300
@@ -54,14 +54,18 @@
 WHERE (Population >= 100000 OR Name LIKE 'P%') AND Country='CAN' OR
 (Population < 100000 OR Name Like 'T%') AND Country='ARG';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Country,Name	Country	3	NULL	106	Using index condition; Using where
+1	SIMPLE	City	range	Population,Country,Name	Country	3	NULL	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1818.
 EXPLAIN
 SELECT * FROM City
 WHERE Population < 200000 AND Name LIKE 'P%' AND
 (Population > 300000 OR Name LIKE 'T%') AND
 (Population < 100000 OR Name LIKE 'Pa%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Name	Name	35	NULL	236	Using index condition; Using where
+1	SIMPLE	City	range	Population,Name	Population	4	NULL	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1216.
 EXPLAIN
 SELECT * FROM City
 WHERE Population > 100000 AND Name LIKE 'Aba%' OR
@@ -69,7 +73,9 @@
 Country <= 'ALB' AND Name LIKE 'L%' OR
 ID BETWEEN 3807 AND 3810;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Name,Country,PRIMARY	35,3,4	NULL	32	Using sort_union(Name,Country,PRIMARY); Using where
+1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Population,Country,PRIMARY	4,3,4	NULL	3	Using sort_union(Population,Country,PRIMARY); Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1218.
 EXPLAIN 
 SELECT * FROM City
 WHERE (Population > 101000 AND Population < 115000);
@@ -212,7 +218,7 @@
 WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
 (Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Name,Population	35,4	NULL	60	Using sort_union(Name,Population); Using where
+1	SIMPLE	City	index_merge	Population,Country,Name	Country,Population	3,4	NULL	144	Using sort_union(Country,Population); Using where
 EXPLAIN
 SELECT  * FROM City
 WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
@@ -348,32 +354,42 @@
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'H%' OR Name LIKE 'P%' ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	395	Using index condition
+1	SIMPLE	City	range	Name	Name	35	NULL	1	Using index condition
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 644.
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'Ha%' OR Name LIKE 'Pa%' ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	133	Using index condition
+1	SIMPLE	City	range	Name	Name	35	NULL	1	Using index condition
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 645.
 EXPLAIN
 SELECT * FROM City
 WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 100 AND 110) AND 
 (Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name	PRIMARY	4	NULL	20	Using where
+1	SIMPLE	City	range	PRIMARY,Population,Country,Name	PRIMARY	4	NULL	1	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1800.
 EXPLAIN
 SELECT * FROM City
 WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 900 AND 1500) AND 
 (Name LIKE 'Pa%' OR (Population > 103000 AND Population < 105000)));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Name,Country,PRIMARY	39,3,4	NULL	683	Using sort_union(Name,Country,PRIMARY); Using where
+1	SIMPLE	City	range	PRIMARY,Population,Country,Name	PRIMARY	4	NULL	1	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1809.
 EXPLAIN
 SELECT * FROM City
 WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 100 AND 200) AND 
 (Name LIKE 'Pa%' OR (Population > 103200 AND Population < 104000)));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name	PRIMARY	4	NULL	200	Using where
+1	SIMPLE	City	range	PRIMARY,Population,Country,Name	PRIMARY	4	NULL	1	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1751.
 SELECT * FROM City USE INDEX ()
 WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 100 AND 110) AND 
@@ -613,7 +629,9 @@
 EXPLAIN 
 SELECT * FROM City WHERE Name LIKE 'P%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	236	Using index condition
+1	SIMPLE	City	range	Name	Name	35	NULL	1	Using index condition
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 644.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 102000) AND
@@ -621,7 +639,9 @@
 ((ID BETWEEN 3400 AND 3800) AND 
 (Country < 'AGO' OR Name LIKE 'Pa%'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Population,PRIMARY	4,4	NULL	440	Using sort_union(Population,PRIMARY); Using where
+1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Population,PRIMARY	4,4	NULL	2	Using sort_union(Population,PRIMARY); Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 4606.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 110000) AND
@@ -629,7 +649,9 @@
 ((ID BETWEEN 3790 AND 3800) AND 
 (Country < 'C' OR Name LIKE 'P%'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Country,Name,PRIMARY	3,35,4	NULL	87	Using sort_union(Country,Name,PRIMARY); Using where
+1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Population,PRIMARY	4,4	NULL	2	Using sort_union(Population,PRIMARY); Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 4600.
 SELECT * FROM City USE INDEX ()
 WHERE ((Population > 101000 AND Population < 102000) AND
 (Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
@@ -684,11 +706,15 @@
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'Pas%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	8	Using index condition
+1	SIMPLE	City	range	Name	Name	35	NULL	1	Using index condition
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 759.
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'P%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	236	Using index condition
+1	SIMPLE	City	range	Name	Name	35	NULL	1	Using index condition
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 757.
 EXPLAIN
 SELECT * FROM City WHERE (Population > 101000 AND Population < 103000);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
@@ -706,13 +732,17 @@
 WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
 AND Country='USA';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name,CountryPopulation	CountryPopulation,Name	7,35	NULL	18	Using sort_union(CountryPopulation,Name); Using where
+1	SIMPLE	City	ref	Population,Country,Name,CountryPopulation	Country	3	const	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 4238.
 EXPLAIN
 SELECT * FROM City 
 WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
 AND Country='EST';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	ref	Population,Country,Name,CountryPopulation	Country	3	const	2	Using index condition; Using where
+1	SIMPLE	City	ref	Population,Country,Name,CountryPopulation	Country	3	const	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 4222.
 SELECT * FROM City 
 WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
 AND Country='USA';
@@ -801,7 +831,9 @@
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'Pa%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	71	Using index condition
+1	SIMPLE	City	range	Name	Name	35	NULL	1	Using index condition
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 865.
 set @tmp_range_vs_index_merge=@@optimizer_switch;
 set optimizer_switch='extended_keys=off';
 EXPLAIN
@@ -810,14 +842,18 @@
 ID BETWEEN 3790 AND 3800) AND Country='USA'
         AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryPopulation,PRIMARY	7,4	NULL	14	Using sort_union(CountryPopulation,PRIMARY); Using where
+1	SIMPLE	City	ref	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	Country	3	const	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 7788.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 103000) OR
 ID BETWEEN 3790 AND 3800) AND Country='USA'
         AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryName,PRIMARY	38,4	NULL	10	Using sort_union(CountryName,PRIMARY); Using where
+1	SIMPLE	City	ref	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	Country	3	const	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 7787.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 110000) OR
@@ -873,7 +909,9 @@
 ID BETWEEN 3790 AND 3800) AND Country='USA'
         OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryPopulation,CountryName,PRIMARY	7,38,4	NULL	36	Using sort_union(CountryPopulation,CountryName,PRIMARY); Using where
+1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	Country	3	NULL	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 7880.
 SELECT * FROM City USE INDEX ()
 WHERE ((Population > 101000 and Population < 102000) OR
 ID BETWEEN 3790 AND 3800) AND Country='USA'
@@ -956,14 +994,18 @@
 ID BETWEEN 3500 AND 3800) AND Country='USA'
         AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryName	38	NULL	18	Using index condition
+1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	PRIMARY	4	NULL	1	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2003.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 11000) OR
 ID BETWEEN 3500 AND 3800) AND Country='USA'
         AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	Name	35	NULL	1	Using index condition; Using where
+1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	PRIMARY	4	NULL	1	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2005.
 SELECT * FROM City USE INDEX ()
 WHERE ((Population > 101000 AND Population < 11000) OR
 ID BETWEEN 3500 AND 3800) AND Country='USA'
@@ -998,7 +1040,9 @@
 WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
 Country='USA' AND Name LIKE 'Pa%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Country,CountryPopulation,CountryName	CountryPopulation,CountryName	7,38	NULL	8	Using sort_union(CountryPopulation,CountryName); Using where
+1	SIMPLE	City	ref	Country,CountryPopulation,CountryName	Country	3	const	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 5325.
 SELECT * FROM City USE INDEX()
 WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
 Country='USA' AND Name LIKE 'Pa%';
@@ -1028,7 +1072,9 @@
 WHERE Country='USA' AND 
 (Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Country,CountryPopulation,CountryName	CountryPopulation,CountryName	7,38	NULL	8	Using sort_union(CountryPopulation,CountryName); Using where
+1	SIMPLE	City	ref	Country,CountryPopulation,CountryName	Country	3	const	1	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 5325.
 SELECT * FROM City
 WHERE Country='USA' AND 
 (Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
@@ -1084,7 +1130,7 @@
 (Name='Samara' AND Country='RUS') OR  
 (Name='Seattle' AND Country='USA');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Country,CountryPopulation,CountryName,CityName	CountryName	38	NULL	27	Using index condition
+1	SIMPLE	City	index_merge	Country,CountryPopulation,CountryName,CityName	CityName,CountryName	35,38	NULL	28	Using sort_union(CityName,CountryName); Using where
 SELECT Name, Country, Population FROM City WHERE
 (Name='Manila' AND Country='PHL') OR
 (Name='Addis Abeba' AND Country='ETH') OR          

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.range_vs_index_merge_innodb/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.secondary_key_costs                 [ pass ]    155
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_elimination               [ pass ]     53
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_innodb                    [ fail ]
        Test ended at 2026-04-26 19:50:10

CURRENT_TEST: main.subselect_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_innodb.result	2026-04-24 13:53:12.221386165 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_innodb.reject	2026-04-26 19:50:10.410871948 +0300
@@ -422,8 +422,8 @@
 explain
 select 1 from t1 where 1 like (select 1 from t1 where 1 <=> (select 1 from t1 group by a1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	1	
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	1	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	1	Using temporary; Using filesort
 select 1 from t1 where 1 like (select 1 from t1 where 1 <=> (select 1 from t1 group by a1));
 1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_innodb/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_sj2                       [ fail ]
        Test ended at 2026-04-26 19:50:12

CURRENT_TEST: main.subselect_sj2
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2.result	2026-04-24 13:53:12.225386259 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2.reject	2026-04-26 19:50:11.934905268 +0300
@@ -966,9 +966,9 @@
 WHERE a = d AND ( pk < 2 OR d = 'z' )
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	index	PRIMARY,d	d	9	NULL	17	Using where; Using index; LooseScan
-1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; FirstMatch(t2)
+1	PRIMARY	t2	index_merge	PRIMARY,d	d,PRIMARY	4,4	NULL	2	Using sort_union(d,PRIMARY); Using where; Start temporary
 1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	
+1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; End temporary
 Warnings:
 Note	1105	Cannot use key `d` part[0] for lookup: `test`.`t2`.`d` of type `varchar` = "`t1`.`a`" of type `int`
 explain
@@ -978,8 +978,8 @@
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	index_merge	PRIMARY,d	d,PRIMARY	4,4	NULL	2	Using sort_union(d,PRIMARY); Using where; Start temporary
-1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index
-1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	End temporary
+1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	
+1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; End temporary
 Warnings:
 Note	1105	Cannot use key `d` part[0] for lookup: `test`.`t2`.`d` of type `varchar` = "`t1`.`a`" of type `int`
 SELECT * FROM t1 WHERE b IN (

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_sj2/'
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In included file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2.test":
ReplayTest: included from /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_jcl6.test at line 18:
ReplayTest: At line 55
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In included file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2.test":
ReplayTest: included from /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_jcl6.test at line 18:
ReplayTest: At line 71
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_jcl6.test"
ReplayTest: At line 47
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_sj2_jcl6                  [ fail ]
        Test ended at 2026-04-26 19:50:14

CURRENT_TEST: main.subselect_sj2_jcl6
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_jcl6.result	2026-04-24 13:53:12.225386259 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj2_jcl6.reject	2026-04-26 19:50:13.586941385 +0300
@@ -60,9 +60,7 @@
 18	13
 19	14
 explain select * from t2 where b in (select a from t1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	ALL	b	NULL	NULL	NULL	20	Using where
-1	PRIMARY	t1	hash_ALL	NULL	#hash#$hj	5	test.t2.b	7	Using where; FirstMatch(t2); Using join buffer (flat, BNLH join)
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 select * from t2 where b in (select a from t1);
 a	b
 1	1
@@ -87,9 +85,7 @@
 test.t3	analyze	status	Engine-independent statistics collected
 test.t3	analyze	status	OK
 explain select * from t3 where b in (select a from t1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t3	ALL	b	NULL	NULL	NULL	20	Using where
-1	PRIMARY	t1	hash_ALL	NULL	#hash#$hj	5	test.t3.b	7	Using where; FirstMatch(t3); Using join buffer (flat, BNLH join)
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 select * from t3 where b in (select a from t1);
 a	b	pk1	pk2	pk3
 1	1	1	1	1
@@ -973,9 +969,9 @@
 WHERE a = d AND ( pk < 2 OR d = 'z' )
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	index	PRIMARY,d	d	9	NULL	17	Using where; Using index; LooseScan
-1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; FirstMatch(t2)
+1	PRIMARY	t2	index_merge	PRIMARY,d	d,PRIMARY	4,4	NULL	2	Using sort_union(d,PRIMARY); Using where; Start temporary
 1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; End temporary
 Warnings:
 Note	1105	Cannot use key `d` part[0] for lookup: `test`.`t2`.`d` of type `varchar` = "`t1`.`a`" of type `int`
 explain
@@ -985,8 +981,8 @@
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	index_merge	PRIMARY,d	d,PRIMARY	4,4	NULL	2	Using sort_union(d,PRIMARY); Using where; Start temporary
-1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index
-1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	End temporary; Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	t1	ref	b	b	4	test.t2.d	1	Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
+1	PRIMARY	t1	ref	a	a	5	test.t2.d	1	Using where; Using index; End temporary
 Warnings:
 Note	1105	Cannot use key `d` part[0] for lookup: `test`.`t2`.`d` of type `varchar` = "`t1`.`a`" of type `int`
 SELECT * FROM t1 WHERE b IN (
@@ -1439,11 +1435,7 @@
 EXPLAIN
 SELECT t3.* FROM t1 JOIN t3 ON t3.b = t1.b
 WHERE c IN (SELECT t4.b FROM t4 JOIN t2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t3	ALL	NULL	NULL	NULL	NULL	1	Using where
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	1	Using join buffer (flat, BNL join)
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	Using where; FirstMatch(t3); Using join buffer (incremental, BNL join)
-1	PRIMARY	t1	ref	b	b	4	test.t3.b	1	Using index
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 SELECT t3.* FROM t1 JOIN t3 ON t3.b = t1.b
 WHERE c IN (SELECT t4.b FROM t4 JOIN t2);
 b	c

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_sj2_jcl6/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.update                              [ fail ]
        Test ended at 2026-04-26 19:50:22

CURRENT_TEST: main.update
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/update.result	2026-04-24 13:53:12.245386728 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/update.reject	2026-04-26 19:50:22.215130019 +0300
@@ -752,10 +752,10 @@
 update t1 set a1 = 'u'
   where a2 like 'xx%' and exists(select 1 from t1 where t1.a1 < 'c');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	50.00	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	4	50.00	Using where
 Warnings:
-Note	1003	/* select#1 */ update `test`.`t1` set `test`.`t1`.`a1` = 'u' where `test`.`t1`.`a2` like 'xx%'
+Note	1003	/* select#1 */ update `test`.`t1` set `test`.`t1`.`a1` = 'u' where 0
 update t1 set a1 = 'u'
   where a2 like 'xx%' and exists(select 1 from t1 where t1.a1 < 'c');
 select * from t1;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.update/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 15:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 24:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 33:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 33:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 77
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 40:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 110
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
ReplayTest: In included file "./include/update_use_source_cases.inc":
ReplayTest: included from ./include/update_use_source.inc at line 48:
included from /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.test at line 42:
ReplayTest: At line 128
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.update_use_source                   [ fail ]
        Test ended at 2026-04-26 19:50:28

CURRENT_TEST: main.update_use_source
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.result	2026-04-24 13:53:12.249386822 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/update_use_source.reject	2026-04-26 19:50:27.639248607 +0300
@@ -332,9 +332,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -390,9 +388,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -448,10 +444,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -793,12 +786,12 @@
 test.t1	analyze	status	OK
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 explain update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 affected rows: 20
 info: Rows matched: 20  Changed: 20  Warnings: 0
@@ -849,13 +842,13 @@
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where; Using filesort
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	range	t1_c2	t1_c2	5	NULL	20	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 explain update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where; Using filesort
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	range	t1_c2	t1_c2	5	NULL	20	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 affected rows: 20
@@ -966,9 +959,7 @@
 1	SIMPLE	t1	ref	t1_c2	t1_c2	5	const	8	
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	Using where
-2	DEPENDENT SUBQUERY	a	index	NULL	t1_c2	10	NULL	32	Using where; Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -1024,9 +1015,7 @@
 1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	1	Using index; FirstMatch(t1)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	10	NULL	1	Using index condition; Using where
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	1	Using where; Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -1082,10 +1071,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	10	NULL	2	Using index condition
-3	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	5	const	8	Using where; Using index
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	1	Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -1605,9 +1591,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	PRIMARY	PRIMARY	4	NULL	29	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -1663,9 +1647,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -1721,10 +1703,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -2879,9 +2858,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -2937,9 +2914,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -2995,10 +2970,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -3340,12 +3312,12 @@
 test.t1	analyze	status	OK
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	5	NULL	21	Using index condition
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 explain update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	5	NULL	21	Using index condition
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 affected rows: 20
 info: Rows matched: 20  Changed: 20  Warnings: 0
@@ -3396,13 +3368,13 @@
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	5	NULL	21	Using index condition
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	range	t1_c2	t1_c2	5	NULL	21	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 explain update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	5	NULL	21	Using index condition
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	range	t1_c2	t1_c2	5	NULL	21	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 affected rows: 20
@@ -3513,9 +3485,7 @@
 1	SIMPLE	t1	ref	t1_c2	t1_c2	5	const	8	
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	Using where
-2	DEPENDENT SUBQUERY	a	index	NULL	t1_c2	10	NULL	32	Using where; Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -3571,9 +3541,7 @@
 1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	1	Using index; FirstMatch(t1)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	10	NULL	1	Using index condition; Using where
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	1	Using where; Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -3629,10 +3597,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	10	NULL	2	Using index condition
-3	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	5	const	8	Using where; Using index
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	1	Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -4152,9 +4117,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	PRIMARY	PRIMARY	4	NULL	30	Using index condition; Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -4210,9 +4173,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -4268,10 +4229,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -5426,9 +5384,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -5484,9 +5440,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -5542,10 +5496,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -5887,12 +5838,12 @@
 test.t1	analyze	status	OK
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 explain update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 >= 3;
 affected rows: 20
 info: Rows matched: 20  Changed: 20  Warnings: 0
@@ -5943,13 +5894,13 @@
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where; Using filesort
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan; Using filesort
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 explain update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where; Using filesort
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; LooseScan; Using filesort
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	5	
 update t1 set c1=c1+10 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 affected rows: 20
@@ -6060,9 +6011,7 @@
 1	SIMPLE	t1	ref	t1_c2	t1_c2	5	const	8	
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	Using where
-2	DEPENDENT SUBQUERY	a	index	NULL	t1_c2	10	NULL	32	Using where; Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -6118,9 +6067,7 @@
 1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	1	Using index; FirstMatch(t1)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	10	NULL	1	Using index condition; Using where
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	1	Using where; Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -6176,10 +6123,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	10	NULL	2	Using index condition
-3	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	5	const	8	Using where; Using index
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	1	Using index
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -6699,9 +6643,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -6757,9 +6699,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -6815,10 +6755,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -7973,9 +7910,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -8031,9 +7966,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -8089,10 +8022,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -8549,9 +8479,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	
 explain update t1 set c1=c1 +(select max(a.c2) from v1 a
 where a.c1 = t1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	2	
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 update t1 set c1=c1 +(select max(a.c2) from v1 a
 where a.c1 = t1.c1);
 affected rows: 32
@@ -8602,11 +8530,11 @@
 explain select * from v1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -8659,11 +8587,12 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
 1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	2	FirstMatch(t1)
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	2	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -8715,13 +8644,13 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
 1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	2	
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
@@ -9238,9 +9167,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 explain update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + (select max(a.c2) from t1 a
 where a.c1 = v1.c1) +10 where c3 > 3;
 affected rows: 7
@@ -9296,9 +9223,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1 set c1=c1 + 1 where c1 <2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 affected rows: 1
@@ -9354,10 +9279,7 @@
 explain update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+ReplayTest: Query error: Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 update v1
 set c1=(select max(a.c1)+10 from v1 a where a.c1 = v1.c1)
 where c1 <10 and exists (select 'X' from v1 a where a.c2 = v1.c2);

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.update_use_source/'
main.vector2_notembedded                 [ pass ]   3991
main.vector_innodb                       [ pass ]    810
main.mysql_upgrade_mysql_json_datatype   [ pass ]   2548
main.lowercase_mixed_tmpdir_innodb       [ skipped ]  Test requires: 'lowercase2'
main.lowercase_table2                    [ skipped ]  Test requires: 'lowercase2'
main.lowercase_table4                    [ skipped ]  Test requires: 'case_insensitive_file_system'
main.plugin_auth                         [ pass ]   3633
main.plugin_innodb                       [ pass ]   1700
main.xa_prepared_binlog_off              [ pass ]   2819
main.temp_table                          [ pass ]    101
main.stat_tables_par_innodb              [ pass ]   4978
ReplayTest: Loading context 
ReplayTest: Loading context 
main.statistics                          [ pass ]   2904
main.statistics_index_crash-7362         [ pass ]     23
main.alter_events                        [ pass ]    141
main.alter_table                         [ pass ]   3566
main.alter_table_autoinc-5574            [ pass ]      8
main.alter_table_errors                  [ pass ]      8
main.alter_table_lock                    [ pass ]     74
main.alter_table_online 'nobinlog'       [ pass ]    143
main.alter_table_trans                   [ pass ]     26
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.analyze_stmt_orderby                [ pass ]    101
main.backup_lock_debug                   [ pass ]     16
main.backup_log                          [ pass ]     64
main.bootstrap_innodb                    [ pass ]   1814
main.cache_innodb                        [ pass ]     66
main.check_constraint_innodb             [ pass ]     13
main.column_compression                  [ pass ]    637
main.commit                              [ pass ]     51
main.concurrent_innodb_safelog           [ pass ]   9167
main.concurrent_innodb_unsafelog         [ pass ]   5128
main.consistent_snapshot                 [ pass ]      8
main.ctype_filename_innodb               [ pass ]      6
main.ctype_sjis_innodb                   [ pass ]     51
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_uca_innodb                    [ fail ]
        Test ended at 2026-04-26 19:51:25

CURRENT_TEST: main.ctype_uca_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_uca_innodb.result	2026-04-24 13:53:12.053382224 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_uca_innodb.reject	2026-04-26 19:51:24.676495749 +0300
@@ -25,7 +25,9 @@
 ch
 EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
 ch
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
@@ -44,13 +46,17 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 ch
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 ch
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
@@ -94,7 +100,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 ch
 a
@@ -117,7 +125,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 ch
 a
@@ -146,14 +156,18 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 ch
 z
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 ch
 z

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_uca_innodb/'
main.ctype_upgrade                       [ pass ]   1429
main.ctype_utf32_innodb                  [ pass ]      6
main.ctype_utf8mb3_innodb                [ pass ]     13
ReplayTest: Loading context 
main.ctype_utf8mb4_0900                  [ pass ]    161
main.deadlock_innodb                     [ pass ]   6076
main.debug_sync                          [ pass ]     37
main.default                             [ pass ]    448
main.default_innodb                      [ pass ]      8
main.delete_multi_order_by               [ pass ]     52
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.delete_use_source_engines           [ fail ]
        Test ended at 2026-04-26 19:51:38

CURRENT_TEST: main.delete_use_source_engines
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/delete_use_source_engines.result	2026-04-24 13:53:12.069382599 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/delete_use_source_engines.reject	2026-04-26 19:51:37.756781785 +0300
@@ -2443,8 +2443,10 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -2506,9 +2508,11 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 analyze delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -3166,8 +3170,8 @@
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	t1_c2	t1_c2	5	NULL	#	Using index condition
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	#	Using index; FirstMatch(t1)
+1	PRIMARY	a	range	t1_c2	t1_c2	5	NULL	#	Using where; Using index; LooseScan
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	#	
 explain delete from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
@@ -3211,8 +3215,11 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.t1_c2 doesn't exist in list of index contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -3274,9 +3281,12 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,const	#	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	#	Using where; Using index
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.t1_c2 doesn't exist in list of index contexts
 analyze delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -3983,8 +3993,11 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.PRIMARY doesn't exist in list of index contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -4046,9 +4059,12 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
 2	DEPENDENT SUBQUERY	a	eq_ref	PRIMARY	PRIMARY	4	test.t1.c3	#	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.PRIMARY doesn't exist in list of index contexts
 analyze delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -4848,8 +4864,10 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -4911,9 +4929,11 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 analyze delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -5524,7 +5544,7 @@
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 = 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	const	8	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	32	Using where; Using index; FirstMatch(t1); Using join buffer (flat, BNL join)
 explain delete from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 = 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	
@@ -5571,8 +5591,8 @@
 explain select * from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	#	Using where; Using filesort
-1	PRIMARY	a	ref	t1_c2	t1_c2	5	test.t1.c2	#	Using index; FirstMatch(t1)
+1	PRIMARY	a	index	t1_c2	t1_c2	10	NULL	#	Using where; Using index; LooseScan; Using filesort
+1	PRIMARY	t1	ref	t1_c2	t1_c2	5	test.a.c2	#	
 explain delete from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2)
 and c2 >= 3 order by c2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
@@ -5616,8 +5636,11 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	5	const	8	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ref	t1_c2	t1_c2	5	test.t1.c2	5	Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.t1_c2 doesn't exist in list of index contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -5679,9 +5702,12 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,const	#	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	#	Using where; Using index
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.t1_c2 doesn't exist in list of index contexts
 analyze delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -6388,8 +6414,11 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.PRIMARY doesn't exist in list of index contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -6451,9 +6480,12 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	#	Using where
 2	DEPENDENT SUBQUERY	a	eq_ref	PRIMARY	PRIMARY	4	test.t1.c3	#	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.PRIMARY doesn't exist in list of index contexts
 analyze delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -7244,8 +7276,10 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -7307,9 +7341,11 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
 delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -7466,10 +7502,16 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
 1	PRIMARY	a	ALL	t1_c2	NULL	NULL	NULL	32	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 explain delete from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 = 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
 1	PRIMARY	a	ALL	t1_c2	NULL	NULL	NULL	32	Using where; FirstMatch(t1)
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 delete from t1 where exists (select 'X' from t1 a where a.c2 = t1.c2) and c2 = 3;
 affected rows: 8
 select * from t1;
@@ -7946,11 +7988,15 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	2	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 explain delete from t1 where t1.c2 in ( select max(a.c2) from v1 a
 where a.c1 = t1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 2	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,test.t1.c1	2	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 delete from t1 where t1.c2 in ( select max(a.c2) from v1 a
 where a.c1 = t1.c1);
 affected rows: 8
@@ -7995,11 +8041,16 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
 2	DEPENDENT SUBQUERY	a	ALL	t1_c2	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	t1_c2	NULL	NULL	NULL	32	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	t1_c2	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.t1_c2 doesn't exist in list of index contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -8060,9 +8111,13 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	t1_c2	t1_c2	10	const,const	2	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ref	t1_c2	t1_c2	10	const,func	2	Using where
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.t1_c2 doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.t1_c2 doesn't exist in list of range contexts
 delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
@@ -8757,8 +8812,11 @@
 explain delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	DEPENDENT SUBQUERY	a	ALL	NULL	NULL	NULL	NULL	32	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.PRIMARY doesn't exist in list of index contexts
 delete from v1 where v1.c1 in
 (select max(a.c1) from t1 a where a.c2 = v1.c2) and c3 = 5;
 affected rows: 0
@@ -8820,9 +8878,12 @@
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	32	Using where
 2	DEPENDENT SUBQUERY	a	eq_ref	PRIMARY	PRIMARY	4	test.t1.c3	1	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1 doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.v1.PRIMARY doesn't exist in list of index contexts
 delete from v1 where v1.c2 in (select max(a.c2) from t1 a where a.c3 = v1.c3)
 and c1 = 2
 and exists (select 'X' from v1 a where a.c1 = v1.c1);

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.delete_use_source_engines/'
ReplayTest: Loading context 
ReplayTest: Loading context 
main.derived_cond_pushdown_innodb        [ pass ]     39
main.drop                                [ pass ]     59
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.endspace                            [ pass ]     48
ReplayTest: Loading context 
main.explain_innodb                      [ pass ]     12
ReplayTest: Loading context 
main.explain_json_innodb                 [ pass ]     23
ReplayTest: Loading context 
main.ext_key_noPK_6794                   [ pass ]     18
main.fast_prefix_index_fetch_innodb      [ pass ]     32
main.flush-innodb                        [ pass ]     82
main.flush-innodb-notembedded            [ pass ]     11
main.flush_block_commit                  [ pass ]   1039
main.flush_read_lock                     [ pass ]   6083
main.flush_read_lock_kill                [ pass ]    124
main.foreign_key                         [ pass ]     25
main.foreign_key_lowercase0              [ pass ]      8
ReplayTest: Loading context 
main.func_analyse                        [ pass ]     37
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_group_innodb                   [ pass ]    128
ReplayTest: Loading context 
main.func_json                           [ pass ]    186
main.func_rollback                       [ pass ]     63
main.function_defaults_innodb            [ pass ]    666
main.get_diagnostics                     [ pass ]    141
main.gis-alter_table                     [ pass ]     13
main.greedy_optimizer                    [ pass ]   7353
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.group_by_innodb                     [ pass ]     75
main.ignored_index_innodb                [ pass ]     10
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.index_intersect_innodb              [ fail ]
        Test ended at 2026-04-26 19:52:01

CURRENT_TEST: main.index_intersect_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/index_intersect_innodb.result	2026-04-24 13:55:48.333039060 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/index_intersect_innodb.reject	2026-04-26 19:52:01.185294138 +0300
@@ -71,22 +71,30 @@
 SELECT * FROM City WHERE
 Name LIKE 'C%' AND Population > 1000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1216.
 EXPLAIN
 SELECT * FROM City WHERE
 Name LIKE 'M%' AND Population > 1500000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1216.
 EXPLAIN
 SELECT * FROM City 
 WHERE Name LIKE 'M%' AND Population > 300000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Name,Population	35,4	NULL	#	Using sort_intersect(Name,Population); Using where
+1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1216.
 EXPLAIN
 SELECT * FROM City
 WHERE Name LIKE 'M%' AND Population > 7000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1215.
 SELECT * FROM City USE INDEX ()
 WHERE Name LIKE 'C%' AND Population > 1000000;
 ID	Name	Country	Population
@@ -368,17 +376,23 @@
 SELECT * FROM City
 WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	City	range	Population,Country,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1206.
 EXPLAIN
 SELECT * FROM City 
 WHERE Name BETWEEN 'G' AND 'K' AND Population > 1000000 AND Country LIKE 'J%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Population,Country	4,3	NULL	#	Using sort_intersect(Population,Country); Using where
+1	SIMPLE	City	range	Population,Country,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1206.
 EXPLAIN
 SELECT * FROM City 
 WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name,Country	Name,Population	#	NULL	#	Using sort_intersect(Name,Population); Using where
+1	SIMPLE	City	range	Population,Name,Country	Population	#	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1205.
 SELECT * FROM City USE INDEX ()
 WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
 ID	Name	Country	Population
@@ -470,28 +484,34 @@
 WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	City	range	PRIMARY,Population,Country	PRIMARY	4	NULL	#	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1767.
 EXPLAIN
 SELECT * FROM City
 WHERE ID BETWEEN 1 AND 500 AND Population > 700000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	City	range	PRIMARY,Population,Country	PRIMARY	4	NULL	#	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1764.
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country	Country	7	NULL	#	Using index condition; Using where
+1	SIMPLE	City	range	PRIMARY,Population,Country	PRIMARY	4	NULL	#	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1769.
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 3701 AND 4000 AND Population > 1000000
 AND Country BETWEEN 'S' AND 'Z';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country	PRIMARY	4	NULL	#	Using where
+1	SIMPLE	City	index_merge	PRIMARY,Population,Country	PRIMARY,Population	4,4	NULL	#	Using sort_intersect(PRIMARY,Population); Using where
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
 AND Country BETWEEN 'S' AND 'Z' ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country	PRIMARY,Population	4,4	NULL	#	Using sort_intersect(PRIMARY,Population); Using where
+1	SIMPLE	City	index_merge	PRIMARY,Population,Country	PRIMARY,Country	4,7	NULL	#	Using sort_intersect(PRIMARY,Country); Using where
 SELECT * FROM City USE INDEX ()
 WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
 ID	Name	Country	Population
@@ -703,33 +723,43 @@
 SELECT * FROM City WHERE
 Name LIKE 'C%' AND Population > 1000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1216.
 EXPLAIN
 SELECT * FROM City WHERE
 Name LIKE 'M%' AND Population > 1500000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1216.
 EXPLAIN
 SELECT * FROM City 
 WHERE  Name BETWEEN 'G' AND 'K' AND Population > 1000000 AND Country LIKE 'J%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Population,Country	4,3	NULL	#	Using sort_intersect(Population,Country); Using where
+1	SIMPLE	City	range	Population,Country,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1206.
 EXPLAIN
 SELECT * FROM City 
 WHERE  Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Name,Population	35,4	NULL	#	Using sort_intersect(Name,Population); Using where
+1	SIMPLE	City	range	Population,Country,Name	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1205.
 EXPLAIN
 SELECT * FROM City
 WHERE ID BETWEEN 1 AND 500 AND Population > 700000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	City	range	PRIMARY,Population,Country	PRIMARY	4	NULL	#	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1764.
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
 AND Country BETWEEN 'S' AND 'Z';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country	PRIMARY	4	NULL	#	Using where
+1	SIMPLE	City	index_merge	PRIMARY,Population,Country	PRIMARY,Country	4,7	NULL	#	Using sort_intersect(PRIMARY,Country); Using where
 SELECT * FROM City WHERE
 Name LIKE 'C%' AND Population > 1000000;
 ID	Name	Country	Population
@@ -858,7 +888,9 @@
 SELECT * FROM City 
 WHERE Country LIKE 'M%' AND Population > 1000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,CountryID,CountryName	Population,CountryID	4,3	NULL	#	Using sort_intersect(Population,CountryID); Using where
+1	SIMPLE	City	range	Population,CountryID,CountryName	Population	4	NULL	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1322.
 EXPLAIN
 SELECT * FROM City 
 WHERE Country='USA' AND Population > 1000000;
@@ -868,7 +900,9 @@
 SELECT * FROM City 
 WHERE Country='USA' AND Population > 1500000 AND Name LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name,CountryID,CountryName	CountryName,Population	38,4	NULL	#	Using sort_intersect(CountryName,Population); Using where
+1	SIMPLE	City	ref	Population,Name,CountryID,CountryName	CountryID	3	const	#	Using index condition; Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1330.
 SELECT * FROM City USE INDEX ()
 WHERE Country LIKE 'M%' AND Population > 1000000;
 ID	Name	Country	Population
@@ -940,8 +974,20 @@
 WHERE City.Name LIKE 'C%' AND City.Population > 1000000 AND
 Country.Code=City.Country;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name,CountryID,CountryName	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	City	range	Population,Name,CountryID,CountryName	Population	4	NULL	#	Using index condition; Using where
 1	SIMPLE	Country	eq_ref	PRIMARY	PRIMARY	3	world.City.Country	#	
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2089.
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.PRIMARY doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.Population doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.Name doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.CountryID doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.CountryName doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.Population doesn't exist in list of range contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.Name doesn't exist in list of range contexts
 DROP DATABASE world;
 use test;
 CREATE TABLE t1 (
@@ -969,7 +1015,9 @@
 SELECT * FROM t1
 WHERE (f1 < 535  OR  f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index_merge	PRIMARY,f4	PRIMARY,f4	4,39	NULL	#	Using sort_intersect(PRIMARY,f4); Using where
+1	SIMPLE	t1	range	PRIMARY,f4	PRIMARY	4	NULL	#	Using where
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1009.
 SELECT * FROM t1
 WHERE (f1 < 535  OR  f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
 f1	f4	f5

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.index_intersect_innodb/'
main.information_schema-big              [ pass ]   6569
main.information_schema-big_embedded     [ skipped ]  Test requires: embedded server
main.information_schema_db               [ pass ]    145
main.information_schema_inno             [ pass ]     83
main.information_schema_temp_table       [ pass ]    210
ReplayTest: Loading context 
main.innodb_bug878769                    [ pass ]     20
main.innodb_group                        [ pass ]      5
ReplayTest: Loading context 
main.innodb_icp_debug                    [ pass ]    136
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.innodb_mrr_cpk                      [ pass ]    391
main.innodb_utf8                         [ pass ]     13
main.insert_innodb                       [ pass ]     26
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_outer_innodb                   [ fail ]
        Test ended at 2026-04-26 19:52:12

CURRENT_TEST: main.join_outer_innodb
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/join_outer_innodb.result	2026-04-24 13:53:12.125383913 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/join_outer_innodb.reject	2026-04-26 19:52:11.693523952 +0300
@@ -10,14 +10,18 @@
 SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id 
 WHERE t1.name LIKE 'A%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	PRIMARY,name	name	23	NULL	2	Using where; Using index
+1	SIMPLE	t1	range	PRIMARY,name	name	23	NULL	1	Using where; Using index
 1	SIMPLE	t2	ref	fkey	fkey	5	test.t1.id	1	Using index
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 444.
 EXPLAIN
 SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id 
 WHERE t1.name LIKE 'A%' OR FALSE;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	PRIMARY,name	name	23	NULL	2	Using where; Using index
+1	SIMPLE	t1	range	PRIMARY,name	name	23	NULL	1	Using where; Using index
 1	SIMPLE	t2	ref	fkey	fkey	5	test.t1.id	1	Using index
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 444.
 DROP TABLE t1,t2;
 #
 # BUG#58456: Assertion 0 in QUICK_INDEX_MERGE_SELECT::need_sorted_output

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.join_outer_innodb/'
main.keyread                             [ pass ]     36
main.kill                                [ pass ]    262
main.kill_debug                          [ pass ]     77
main.leaks                               [ pass ]      8
main.loaddata_innodb                     [ pass ]     15
main.lock_kill                           [ pass ]     16
main.locked_temporary-5955               [ pass ]      3
main.locking_clause                      [ pass ]     20
main.log_tables_upgrade                  [ pass ]    709
main.long_unique_innodb_debug            [ pass ]   1075
main.mariadb-dump-debug                  [ pass ]     33
main.mariadb-import                      [ pass ]   1264
main.mdev-35046                          [ pass ]   1434
main.mdev-35721-ubsan                    [ pass ]     47
ReplayTest: Loading context 
main.mdev13607                           [ pass ]    194
main.mdev_32854                          [ pass ]   1465
ReplayTest: Loading context 
main.mrr_derived_crash_4610              [ pass ]     26
main.multi_update_innodb                 [ pass ]    107
main.mysql57nopart                       [ pass ]      3
main.mysql_tzinfo_to_sql_symlink         [ pass ]    162
main.mysql_upgrade_noengine              [ pass ]   2226
main.mysql_upgrade_ssl                   [ pass ]    659
main.mysqldump-order-by-size             [ pass ]     41
main.mysqldump-system 'unix'             [ pass ]    229
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_index_merge               [ pass ]   1430
ReplayTest: Loading context 
main.opt_hints_subquery_innodb           [ pass ]     15
main.opt_trace_index_merge_innodb        [ pass ]    286
main.parser_bug21114_innodb              [ pass ]   1816
main.percona_nonflushing_analyze_debug   [ pass ]      9
main.progress_976225                     [ pass ]     17
main.ps_innodb                           [ pass ]     20
main.ps_missed_cmds                      [ pass ]     48
main.ps_missed_cmds_bin_prot             [ skipped ]  Need ps-protocol
main.ps_missed_cmds_bin_prot_not_embedded [ skipped ]  Need ps-protocol
main.ps_missed_cmds_not_embedded         [ pass ]      6
main.ps_qc_innodb                        [ pass ]    409
main.query_cache_innodb                  [ pass ]     58
main.read_only_innodb                    [ pass ]     49
main.reopen_temp_table                   [ pass ]     38
ReplayTest: Loading context 
main.rowid_order_innodb                  [ pass ]     43
main.servers                             [ pass ]     49
main.show_analyze                        [ pass ]   1249
main.show_analyze_json                   [ pass ]   1255
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.show_explain_json                   [ pass ]   1347
main.show_explain_non_select             [ pass ]    112
main.simultaneous_assignment             [ pass ]     29
main.single_delete_update_innodb         [ pass ]     10
main.sp-group                            [ pass ]     23
main.sp-innodb                           [ pass ]   4057
main.ssl_and_innodb                      [ pass ]      6
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.stat_tables_disabled                [ pass ]   3825
main.statistics_upgrade_not_done         [ pass ]   2066
main.strict_autoinc_2innodb              [ pass ]      6
main.subselect-crash_15755               [ pass ]     53
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect2.test"
ReplayTest: At line 194
ReplayTest: Loading context 
ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/subselect2.test"
ReplayTest: At line 198
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect2                          [ fail ]
        Test ended at 2026-04-26 19:52:51

CURRENT_TEST: main.subselect2
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect2.result	2026-04-24 13:53:12.217386071 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect2.reject	2026-04-26 19:52:50.542373630 +0300
@@ -160,19 +160,13 @@
 SET optimizer_switch='materialization=on,in_to_exists=on';
 EXPLAIN
 SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM t1) OR a = b;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	index	a	a	5	NULL	2	Using where; Using index
-1	PRIMARY	t3	ref	b	b	5	test.t2.a	1	Using index
-2	SUBQUERY	t1	const	PRIMARY,a	a	9	const,const	1	Using where; Using index
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM t1) OR a = b;
 pk	a	b
 0	4	4
 EXPLAIN
 SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM v1) OR a = b;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	index	a	a	5	NULL	2	Using where; Using index
-1	PRIMARY	t3	ref	b	b	5	test.t2.a	1	Using index
-2	SUBQUERY	t1	const	PRIMARY,a	a	9	const,const	1	Using where; Using index
+ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails
 SELECT * FROM t2,t3 WHERE (2,9) IN (SELECT DISTINCT a,pk FROM v1) OR a = b;
 pk	a	b
 0	4	4
@@ -337,12 +331,10 @@
 select * from t1, t2 left join t3 on ( t2.a = t3.a )
 where t1.a = t2.a and ( t1.a = ( select min(a) from t1 ) or 0 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where; Using join buffer (flat, BNL join)
-1	PRIMARY	t3	ref	idx	idx	6	func	1	100.00	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t3`.`a` AS `a` from `test`.`t1` join `test`.`t2` left join `test`.`t3` on(`test`.`t3`.`a` = `test`.`t1`.`a`) where `test`.`t1`.`a` = (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1`) and `test`.`t2`.`a` = (/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1`)
+Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`a` AS `a`,`test`.`t3`.`a` AS `a` from `test`.`t1` join `test`.`t2` left join `test`.`t3` on(multiple equal(`test`.`t1`.`a`, `test`.`t2`.`a`, `test`.`t3`.`a`)) where 0
 select * from t1, t2 left join t3 on ( t2.a = t3.a )
 where t1.a = t2.a and ( t1.a = ( select min(a) from t1 ) or 0 );
 a	a	a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect2/'
main.subselect_nulls_innodb              [ pass ]      8
main.system_mysql_db_fix40123            [ pass ]    441
main.system_mysql_db_fix50030            [ pass ]    469
main.system_mysql_db_fix50117            [ pass ]    485
main.system_mysql_db_fix50568            [ pass ]    483
main.tablelock                           [ pass ]     23
main.tmp_table_error                     [ pass ]    162
main.transaction_timeout                 [ pass ]   8037
main.trigger-trans                       [ pass ]   2067
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_bit_innodb                     [ pass ]    117
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_blob                           [ pass ]    222
main.type_num_innodb                     [ pass ]     38
main.type_temporal_innodb                [ pass ]     34
main.type_time_hires                     [ pass ]     66
main.type_timestamp_hires                [ pass ]     56
main.union_innodb                        [ pass ]     15
main.unique                              [ pass ]      9
main.unsafe_binlog_innodb                [ pass ]   2100
ReplayTest: Loading context 
ReplayTest: Loading context 
main.update_innodb                       [ pass ]   2926
main.vector_symlink                      [ pass ]     17
main.warnings_debug                      [ pass ]      8
main.xa                                  [ pass ]   7309
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.xtradb_mrr                          [ pass ]    876
main.plugin_loaderr                      [ pass ]   1429
main.mysql_upgrade-28915                 [ pass ]   1444
main.alter_table_combinations 'innodb'   [ pass ]     89
main.myisam-blob                         [ pass ]    410
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.key_cache                           [ pass ]    268
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.select_pkeycache 'nm'               [ fail ]
        Test ended at 2026-04-26 19:53:33

CURRENT_TEST: main.select_pkeycache
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/select_pkeycache.result	2026-04-24 13:53:12.193385508 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/select_pkeycache.reject	2026-04-26 19:53:33.607315618 +0300
@@ -3908,7 +3908,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 name	LENGTH(name)	n
 cc   	5	3
@@ -3917,7 +3919,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 name	LENGTH(name)	n
 cc 	4	4
@@ -4001,7 +4005,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 name	LENGTH(name)	n
 cc   	5	3
@@ -4010,7 +4016,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 name	LENGTH(name)	n
 cc 	4	4
@@ -4150,7 +4158,6 @@
 Note	1003	select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
 SHOW WARNINGS;
 Level	Code	Message
-Note	1003	select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
 DROP TABLE t1;
 SELECT 1 AS ` `;
 
@@ -4906,10 +4913,7 @@
 @cnt
 1
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = f1();
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(`f1`())
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 DROP TABLE t1, t2;
 DROP FUNCTION f1;
 # End of bug#33546
@@ -5703,7 +5707,7 @@
 SELECT * FROM t1 WHERE a = 1 AND
 (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where; Using temporary
+1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
 Note	1276	Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.select_pkeycache-nm/'
main.locale                              [ pass ]     42
main.ctype_cp932_binlog_stm              [ pass ]    865
main.partition_binlog                    [ pass ]     68
main.alter_table-big                     [ pass ]    310
main.create-big                          [ pass ]    193
main.mysqlbinlog_row_big                 [ pass ]    725
main.compound                            [ pass ]     75
main.create_drop_binlog                  [ pass ]     66
main.create_drop_function                [ pass ]      9
main.ctype_gbk_binlog                    [ pass ]     33
main.flush_and_binlog                    [ pass ]   5032
main.mdev-31636                          [ pass ]      1
main.multi_update_binlog                 [ pass ]     59
main.mysql_binary_mode                   [ pass ]     73
main.mysql_binary_zero_insert            [ pass ]     95
main.mysql_upgrade_view                  [ pass ]   2286
main.mysqlbinlog_raw_mode                [ pass ]     95
main.mysqldump_restore                   [ pass ]    406
main.mysqltest                           [ pass ]  10383
main.ps_change_master                    [ pass ]      8
main.trigger_wl3253                      [ pass ]    153
main.user_var-binlog                     [ pass ]     33
main.system_mysql_db_error_log           [ pass ]     31
main.show_check                          [ pass ]    243
main.status                              [ pass ]   9244
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.union                               [ fail ]
        Test ended at 2026-04-26 19:54:12

CURRENT_TEST: main.union
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/union.result	2026-04-24 13:53:12.245386728 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/union.reject	2026-04-26 19:54:12.284161703 +0300
@@ -2036,7 +2036,7 @@
 insert t1 values (1),(2),(3),(1);
 explain select 1 from dual where exists (select max(a) from t1 group by a union select a+2 from t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	4	Using temporary
 3	UNION	t1	ALL	NULL	NULL	NULL	NULL	4	
 NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.union/'
main.multi_statement                     [ pass ]     38
main.log_slow_filter                     [ pass ]     27
ReplayTest: Loading context 
ReplayTest: Loading context 
main.explain_slowquerylog                [ pass ]     44
main.analyze_stmt_slow_query_log         [ pass ]     28
main.partition_blackhole                 [ pass ]     33
main.blackhole                           [ pass ]     57
main.mysqldump-compat                    [ pass ]    147
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_encrypt                        [ pass ]     51
main.ssl_7937 'nossl'                    [ pass ]     34
main.ssl_autoverify 'auto,unix'          [ pass ]    291
main.cli_options_force_protocol_win      [ skipped ]  Need windows
main.mysqldump-win                       [ skipped ]  Need windows
main.ssl_autoverify 'pem,unix'           [ pass ]    262
main.auth_named_pipe                     [ skipped ]  Need windows
main.named_pipe                          [ skipped ]  Need windows
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition                           [ pass ]   2187
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.selectivity                         [ fail ]
        Test ended at 2026-04-26 19:54:27

CURRENT_TEST: main.selectivity
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity.result	2026-04-24 13:55:48.353039527 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity.reject	2026-04-26 19:54:27.520495028 +0300
@@ -74,17 +74,17 @@
 s_acctbal desc, n_name, s_name, p_partkey;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	region	ALL	PRIMARY	NULL	NULL	NULL	5	20.00	Using where; Using temporary; Using filesort
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	0.63	Using where; Using join buffer (flat, BNL join)
-1	PRIMARY	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	4	dbt3_s001.part.p_partkey	3	100.00	Using where
-1	PRIMARY	supplier	eq_ref	PRIMARY,i_s_nationkey	PRIMARY	4	dbt3_s001.partsupp.ps_suppkey	1	100.00	Using where
-1	PRIMARY	nation	eq_ref	PRIMARY,i_n_regionkey	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	100.00	Using where
+1	PRIMARY	nation	ref	PRIMARY,i_n_regionkey	i_n_regionkey	5	dbt3_s001.region.r_regionkey	5	100.00	
+1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	4.17	Using where; Using join buffer (flat, BNL join)
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	100.00	Using where
 2	DEPENDENT SUBQUERY	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	4	dbt3_s001.part.p_partkey	3	100.00	
 2	DEPENDENT SUBQUERY	supplier	eq_ref	PRIMARY,i_s_nationkey	PRIMARY	4	dbt3_s001.partsupp.ps_suppkey	1	100.00	Using where
 2	DEPENDENT SUBQUERY	nation	eq_ref	PRIMARY,i_n_regionkey	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	100.00	Using where
 2	DEPENDENT SUBQUERY	region	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.nation.n_regionkey	1	20.00	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.part.p_partkey' of SELECT #2 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `dbt3_s001`.`supplier`.`s_acctbal` AS `s_acctbal`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`nation`.`n_name` AS `n_name`,`dbt3_s001`.`part`.`p_partkey` AS `p_partkey`,`dbt3_s001`.`part`.`p_mfgr` AS `p_mfgr`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`dbt3_s001`.`supplier`.`s_comment` AS `s_comment` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and (`dbt3_s001`.`part`.`p_size` = 9 or `dbt3_s001`.`part`.`p_size` = 19999) and `dbt3_s001`.`part`.`p_type` like '%TIN' and `dbt3_s001`.`partsupp`.`ps_supplycost` = <expr_cache><`dbt3_s001`.`part`.`p_partkey`>((/* select#2 */ select min(`dbt3_s001`.`partsupp`.`ps_supplycost`) from `dbt3_s001`.`partsupp` join `dbt3_s001`.`supplier` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`region`.`r_regionkey` = `dbt3_s001`.`nation`.`n_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey`)) order by `dbt3_s001`.`supplier`.`s_acctbal` desc,`dbt3_s001`.`nation`.`n_name`,`dbt3_s001`.`supplier`.`s_name`,`dbt3_s001`.`part`.`p_partkey`
+Note	1003	/* select#1 */ select `dbt3_s001`.`supplier`.`s_acctbal` AS `s_acctbal`,`dbt3_s001`.`supplier`.`s_name` AS `s_name`,`dbt3_s001`.`nation`.`n_name` AS `n_name`,`dbt3_s001`.`part`.`p_partkey` AS `p_partkey`,`dbt3_s001`.`part`.`p_mfgr` AS `p_mfgr`,`dbt3_s001`.`supplier`.`s_address` AS `s_address`,`dbt3_s001`.`supplier`.`s_phone` AS `s_phone`,`dbt3_s001`.`supplier`.`s_comment` AS `s_comment` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`supplier`.`s_nationkey` = `dbt3_s001`.`nation`.`n_nationkey` and `dbt3_s001`.`nation`.`n_regionkey` = `dbt3_s001`.`region`.`r_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and (`dbt3_s001`.`part`.`p_size` = 9 or `dbt3_s001`.`part`.`p_size` = 19999) and `dbt3_s001`.`part`.`p_type` like '%TIN' and `dbt3_s001`.`partsupp`.`ps_supplycost` = <expr_cache><`dbt3_s001`.`part`.`p_partkey`>((/* select#2 */ select min(`dbt3_s001`.`partsupp`.`ps_supplycost`) from `dbt3_s001`.`partsupp` join `dbt3_s001`.`supplier` join `dbt3_s001`.`nation` join `dbt3_s001`.`region` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`region`.`r_regionkey` = `dbt3_s001`.`nation`.`n_regionkey` and `dbt3_s001`.`region`.`r_name` = 'ASIA' and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey`)) order by `dbt3_s001`.`supplier`.`s_acctbal` desc,`dbt3_s001`.`nation`.`n_name`,`dbt3_s001`.`supplier`.`s_name`,`dbt3_s001`.`part`.`p_partkey`
 set optimizer_use_condition_selectivity=4;
 explain extended
 select
@@ -597,8 +597,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	nation	ALL	PRIMARY	NULL	NULL	NULL	25	4.00	Using where; Using temporary; Using filesort
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	7.03	Using where
-1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	7.11	Using where; FirstMatch(supplier)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	10.71	Using where
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	4.67	Using where; FirstMatch(supplier)
 4	DEPENDENT SUBQUERY	lineitem	ref	i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey	8	15.14	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
@@ -652,8 +652,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	nation	ALL	PRIMARY	NULL	NULL	NULL	25	4.00	Using where; Using temporary; Using filesort
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	7.81	Using where
-1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	6.40	Using where; FirstMatch(supplier)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	25.00	Using where
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	2.00	Using where; FirstMatch(supplier)
 4	DEPENDENT SUBQUERY	lineitem	ref	i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey	8	15.14	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
@@ -707,8 +707,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	nation	ALL	PRIMARY	NULL	NULL	NULL	25	4.00	Using where; Using temporary; Using filesort
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	100.00	
-1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	7.81	Using where
-1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	6.40	Using where; FirstMatch(supplier)
+1	PRIMARY	part	ALL	PRIMARY	NULL	NULL	NULL	200	25.00	Using where
+1	PRIMARY	partsupp	eq_ref	PRIMARY,i_ps_partkey,i_ps_suppkey	PRIMARY	8	dbt3_s001.part.p_partkey,dbt3_s001.supplier.s_suppkey	1	2.00	Using where; FirstMatch(supplier)
 4	DEPENDENT SUBQUERY	lineitem	ref	i_l_shipdate,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.partsupp.ps_suppkey	8	15.14	Using where
 Warnings:
 Note	1276	Field or reference 'dbt3_s001.partsupp.ps_partkey' of SELECT #4 was resolved in SELECT #2
@@ -835,7 +835,7 @@
 set optimizer_use_condition_selectivity=4;
 explain extended select * from t1 where a=0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1025	0.78	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1025	50.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
 drop table t1;
@@ -2129,14 +2129,14 @@
 explain extended
 select * from t1 where a like '%99%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	1.00	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	100.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` like '%99%'
 # Must have same filtered as above
 explain extended
 select * from t1 where a like '%99%' and (b is null or b is not null);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	1.00	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	100.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` like '%99%' and (`test`.`t1`.`b` is null or `test`.`t1`.`b` is not null)
 drop table t1;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.stat_tables                         [ fail ]
        Test ended at 2026-04-26 19:54:30

CURRENT_TEST: main.stat_tables
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/stat_tables.result	2026-04-24 13:53:12.213385977 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/stat_tables.reject	2026-04-26 19:54:29.840545785 +0300
@@ -251,12 +251,14 @@
 group by nation, o_year
 order by nation, o_year desc;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	supplier	ALL	PRIMARY,i_s_nationkey	NULL	NULL	NULL	10	Using where; Using temporary; Using filesort
+1	SIMPLE	part	ALL	PRIMARY	NULL	NULL	NULL	200	Using where; Using temporary; Using filesort
+1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	i_ps_partkey	4	dbt3_s001.part.p_partkey	3	
+1	SIMPLE	supplier	range	PRIMARY,i_s_nationkey	i_s_nationkey	5	NULL	1	Using index condition; Using where; Using join buffer (flat, BNL join)
 1	SIMPLE	nation	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	
-1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	i_ps_suppkey	4	dbt3_s001.supplier.s_suppkey	70	
-1	SIMPLE	part	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.partsupp.ps_partkey	1	Using where
-1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.supplier.s_suppkey	8	
+1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.part.p_partkey,dbt3_s001.partsupp.ps_suppkey	8	
 1	SIMPLE	orders	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.lineitem.l_orderkey	1	
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.supplier.i_s_nationkey doesn't exist in list of range contexts
 EXPLAIN EXTENDED select nation, o_year, sum(amount) as sum_profit
 from (select n_name as nation, 
 extract(year from o_orderdate) as o_year,
@@ -269,14 +271,15 @@
 group by nation, o_year
 order by nation, o_year desc;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	supplier	ALL	PRIMARY,i_s_nationkey	NULL	NULL	NULL	10	100.00	Using where; Using temporary; Using filesort
+1	SIMPLE	part	ALL	PRIMARY	NULL	NULL	NULL	200	100.00	Using where; Using temporary; Using filesort
+1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	i_ps_partkey	4	dbt3_s001.part.p_partkey	3	100.00	
+1	SIMPLE	supplier	range	PRIMARY,i_s_nationkey	i_s_nationkey	5	NULL	1	100.00	Using index condition; Using where; Using join buffer (flat, BNL join)
 1	SIMPLE	nation	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.supplier.s_nationkey	1	100.00	
-1	SIMPLE	partsupp	ref	PRIMARY,i_ps_partkey,i_ps_suppkey	i_ps_suppkey	4	dbt3_s001.supplier.s_suppkey	70	100.00	
-1	SIMPLE	part	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.partsupp.ps_partkey	1	100.00	Using where
-1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.partsupp.ps_partkey,dbt3_s001.supplier.s_suppkey	8	100.00	
+1	SIMPLE	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	i_l_suppkey_partkey	10	dbt3_s001.part.p_partkey,dbt3_s001.partsupp.ps_suppkey	8	100.00	
 1	SIMPLE	orders	eq_ref	PRIMARY	PRIMARY	4	dbt3_s001.lineitem.l_orderkey	1	100.00	
 Warnings:
-Note	1003	select `dbt3_s001`.`nation`.`n_name` AS `nation`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) AS `o_year`,sum(`dbt3_s001`.`lineitem`.`l_extendedprice` * (1 - `dbt3_s001`.`lineitem`.`l_discount`) - `dbt3_s001`.`partsupp`.`ps_supplycost` * `dbt3_s001`.`lineitem`.`l_quantity`) AS `sum_profit` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`lineitem` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`orders` join `dbt3_s001`.`nation` where `dbt3_s001`.`partsupp`.`ps_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`supplier`.`s_suppkey` and `dbt3_s001`.`part`.`p_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`partsupp`.`ps_partkey` and `dbt3_s001`.`orders`.`o_orderkey` = `dbt3_s001`.`lineitem`.`l_orderkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`part`.`p_name` like '%green%' group by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc order by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: dbt3_s001.supplier.i_s_nationkey doesn't exist in list of range contexts
+Note	1003	select `dbt3_s001`.`nation`.`n_name` AS `nation`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) AS `o_year`,sum(`dbt3_s001`.`lineitem`.`l_extendedprice` * (1 - `dbt3_s001`.`lineitem`.`l_discount`) - `dbt3_s001`.`partsupp`.`ps_supplycost` * `dbt3_s001`.`lineitem`.`l_quantity`) AS `sum_profit` from `dbt3_s001`.`part` join `dbt3_s001`.`supplier` join `dbt3_s001`.`lineitem` join `dbt3_s001`.`partsupp` join `dbt3_s001`.`orders` join `dbt3_s001`.`nation` where `dbt3_s001`.`supplier`.`s_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`lineitem`.`l_suppkey` = `dbt3_s001`.`partsupp`.`ps_suppkey` and `dbt3_s001`.`partsupp`.`ps_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`lineitem`.`l_partkey` = `dbt3_s001`.`part`.`p_partkey` and `dbt3_s001`.`orders`.`o_orderkey` = `dbt3_s001`.`lineitem`.`l_orderkey` and `dbt3_s001`.`nation`.`n_nationkey` = `dbt3_s001`.`supplier`.`s_nationkey` and `dbt3_s001`.`part`.`p_name` like '%green%' group by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc order by `dbt3_s001`.`nation`.`n_name`,extract(year from `dbt3_s001`.`orders`.`o_orderDATE`) desc
 select nation, o_year, sum(amount) as sum_profit
 from (select n_name as nation, 
 extract(year from o_orderdate) as o_year,
@@ -405,7 +408,7 @@
 SET use_stat_tables='preferably';
 EXPLAIN SELECT * FROM t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	
+1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	0	Const row not found
 DROP TABLE t1;
 set use_stat_tables=@save_use_stat_tables;
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.stat_tables/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.limit_rows_examined                 [ fail ]
        Test ended at 2026-04-26 19:54:30

CURRENT_TEST: main.limit_rows_examined
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/limit_rows_examined.result	2026-04-24 13:55:48.337039154 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/limit_rows_examined.reject	2026-04-26 19:54:30.548561274 +0300
@@ -677,8 +677,7 @@
 WHERE EXISTS (SELECT c FROM t3 LEFT JOIN t2 ON b = d) 
 HAVING field1 > 'aaa' LIMIT ROWS EXAMINED 20;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	3	Using join buffer (flat, BNL join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	3	
 2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	3	Using where; Using join buffer (flat, BNL join)
 SELECT DISTINCT a AS field1 FROM t1, t2 

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.limit_rows_examined/'
***Warnings generated in error logs during shutdown after running tests: main.limit_rows_examined

2026-04-26 19:54:30 4 [Warning] Sort aborted, host: localhost, user: root, thread: 4, query: select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2
2026-04-26 19:54:30 4 [Warning] Sort aborted, host: localhost, user: root, thread: 4, query: select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2

main.opt_context_store_ddls              [ pass ]    165
main.opt_trace                           [ pass ]   1014
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_range                     [ pass ]    367
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.sargable_date_cond                  [ fail ]
        Test ended at 2026-04-26 19:54:34

CURRENT_TEST: main.sargable_date_cond
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/sargable_date_cond.result	2026-04-24 13:53:12.189385414 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/sargable_date_cond.reject	2026-04-26 19:54:34.092638810 +0300
@@ -1723,7 +1723,7 @@
 {
   "query_block": {
     "select_id": 1,
-    "cost": 0.003808422,
+    "cost": 0.001617224,
     "nested_loop": [
       {
         "table": {
@@ -1735,7 +1735,7 @@
           "used_key_parts": ["a"],
           "loops": 1,
           "rows": 2,
-          "cost": 0.003808422,
+          "cost": 0.001617224,
           "filtered": 100,
           "index_condition": "t1.a between '2010-01-01 00:00:00' and '2010-12-31 23:59:59'",
           "attached_condition": "t1.c < (subquery#2)"

Result content mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.sargable_date_cond/'
main.sp                                  [ pass ]   8354
main.partition_not_blackhole             [ pass ]     28
main.partition_example                   [ pass ]     49
main.partition_not_windows               [ pass ]     46
main.assign_key_cache                    [ pass ]     38
main.auto_increment_ranges_myisam        [ pass ]     34
ReplayTest: Loading context 
ReplayTest: Loading context 
main.column_compression_parts            [ pass ]    143
main.ctype_partitions                    [ pass ]     12
main.ctype_uca_partitions                [ pass ]     17
main.drop_bad_db_type                    [ pass ]     13
main.enforce_storage_engine              [ pass ]     21
ReplayTest: Loading context 
ReplayTest: Loading context 
main.explain_json_format_partitions      [ pass ]     13
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: explain insert into t1 values (1),(2),(3)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.explain_non_select                  [ fail ]
        Test ended at 2026-04-26 19:54:46

CURRENT_TEST: main.explain_non_select
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/explain_non_select.result	2026-04-24 13:53:12.081382880 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/explain_non_select.reject	2026-04-26 19:54:46.596912376 +0300
@@ -13,7 +13,7 @@
 # DELETE without WHERE is a special case:
 explain delete from t0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	8	Deleting all rows
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	0	Deleting all rows
 create table t1 (a int, b int, filler char(100), key(a), key(b));
 insert into t1 
 select A.a+10*B.a + 10*C.a, A.a+10*B.a + 10*C.a, 'filler' 
@@ -37,8 +37,7 @@
 # Try some subqueries:
 explain delete from t1 where a < (select max(a) from t0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	a	a	5	NULL	1	Using where
-2	SUBQUERY	t0	ALL	NULL	NULL	NULL	NULL	8	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 explain delete from t1 where a < (select max(a) from t0 where a < t1.b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	512	Using where
@@ -88,8 +87,7 @@
 # Try some subqueries:
 explain update t1 set filler='fooo' where a < (select max(a) from t0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	range	a	a	5	NULL	1	Using where
-2	SUBQUERY	t0	ALL	NULL	NULL	NULL	NULL	8	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 explain update t1 set filler='fooo' where a < (select max(a) from t0 where a < t1.b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	512	Using where
@@ -125,7 +123,7 @@
 1	SIMPLE	t0	ALL	NULL	NULL	NULL	NULL	8	
 explain replace into t1 select * from t0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t0	ALL	NULL	NULL	NULL	NULL	8	
+1	SIMPLE	t0	system	NULL	NULL	NULL	NULL	0	Const row not found
 drop table t0, t1;
 #
 # MDEV-5067: Valgrind warnings (Invalid read) in QPF_table_access::print_explain
@@ -190,8 +188,7 @@
 #
 create table t1 (a int, key(a));
 explain insert into t1 values (1),(2),(3);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 insert into t1 values (1),(2),(3);
 create table t2 (a int, b int);
 explain insert into t2 values 
@@ -199,8 +196,8 @@
 (11, 1+(select max(a+1) from t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	INSERT	t2	ALL	NULL	NULL	NULL	NULL	NULL	NULL
-3	SUBQUERY	t1	index	NULL	a	5	NULL	3	Using index
-2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+3	SUBQUERY	t1	system	NULL	NULL	NULL	NULL	0	Const row not found
+2	SUBQUERY	t1	system	NULL	NULL	NULL	NULL	0	Const row not found
 drop table t1,t2;
 #
 # MDEV-5122: "Commands out of sync", "Malformed packet" or client hang up on unique key violation

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.explain_non_select/'
main.huge_frm-6224                       [ pass ]   2016
main.identifier_partition                [ pass ]      5
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ignored_index                       [ pass ]    195
main.information_schema_part             [ pass ]     28
main.lock                                [ pass ]     77
ReplayTest: Loading context 
main.long_unique                         [ pass ]    167
main.partition_bug18198                  [ pass ]     13
main.partition_cache_myisam              [ pass ]    603
main.partition_charset                   [ pass ]     13
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_column                    [ fail ]
        Test ended at 2026-04-26 19:54:51

CURRENT_TEST: main.partition_column
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_column.result	2026-04-24 13:53:12.165384851 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_column.reject	2026-04-26 19:54:51.669023344 +0300
@@ -98,7 +98,7 @@
 00410000
 explain partitions select hex(a) from t1 where a like 'A_';
 id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	p0	system	NULL	NULL	NULL	NULL	1	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 alter table t1 remove partitioning;
 select hex(a) from t1 where a like 'A_';
 hex(a)

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_column/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_column_prune              [ pass ]     99
main.partition_csv                       [ pass ]     21
main.partition_datatype_32               [ skipped ]  Need a 32 bit timestamps
main.partition_datatype_64               [ pass ]     12
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_default                   [ pass ]    288
main.partition_error                     [ pass ]    170
main.partition_grant                     [ pass ]     16
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_hash                      [ pass ]     73
main.partition_key_cache                 [ pass ]    264
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_list                      [ pass ]     47
main.partition_mgm                       [ pass ]     18
main.partition_mgm_err                   [ pass ]     40
main.partition_mgm_err2                  [ pass ]      8
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_mrr_aria                  [ fail ]
        Test ended at 2026-04-26 19:54:55

CURRENT_TEST: main.partition_mrr_aria
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_mrr_aria.result	2026-04-24 13:53:12.169384945 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_mrr_aria.reject	2026-04-26 19:54:55.209100796 +0300
@@ -44,7 +44,7 @@
 explain 
 select * from t3 force index (key_col) where key_col < 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t3	range	key_col	key_col	5	NULL	#	Using index condition; Rowid-ordered scan
+1	SIMPLE	t3	range	key_col	key_col	5	NULL	#	Using index condition
 select * from t3 force index (key_col) where key_col < 3;
 ID	part_id	key_col	col2
 1	0	0	123456
@@ -130,7 +130,7 @@
 explain extended select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = t2.a-1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t2	range	idx	idx	5	NULL	2	100.00	Using where; Using index
-1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	25.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	24.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t0`.`tp` AS `tp`,`test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t0`.`c` AS `c`,`test`.`t2`.`a` AS `a` from `test`.`t0` join `test`.`t2` where `test`.`t0`.`a` = `test`.`t2`.`a` and `test`.`t2`.`a` in (3,4) and `test`.`t0`.`b` / 10 = `test`.`t2`.`a` - 1
 select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = t2.a-1;
@@ -164,7 +164,7 @@
 explain extended select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = 4;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t2	range	idx	idx	5	NULL	2	100.00	Using where; Using index
-1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	25.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	24.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t0`.`tp` AS `tp`,`test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t0`.`c` AS `c`,`test`.`t2`.`a` AS `a` from `test`.`t0` join `test`.`t2` where `test`.`t0`.`a` = `test`.`t2`.`a` and `test`.`t2`.`a` in (3,4) and `test`.`t0`.`b` / 10 = 4
 select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = 4;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_mrr_aria/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_mrr_myisam                [ fail ]
        Test ended at 2026-04-26 19:54:55

CURRENT_TEST: main.partition_mrr_myisam
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_mrr_myisam.result	2026-04-24 13:53:12.169384945 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/partition_mrr_myisam.reject	2026-04-26 19:54:55.761112873 +0300
@@ -44,7 +44,7 @@
 explain 
 select * from t3 force index (key_col) where key_col < 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t3	range	key_col	key_col	5	NULL	#	Using index condition; Rowid-ordered scan
+1	SIMPLE	t3	range	key_col	key_col	5	NULL	#	Using index condition
 select * from t3 force index (key_col) where key_col < 3;
 ID	part_id	key_col	col2
 1	0	0	123456
@@ -130,7 +130,7 @@
 explain extended select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = t2.a-1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t2	range	idx	idx	5	NULL	2	100.00	Using where; Using index
-1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	25.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	24.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t0`.`tp` AS `tp`,`test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t0`.`c` AS `c`,`test`.`t2`.`a` AS `a` from `test`.`t0` join `test`.`t2` where `test`.`t0`.`a` = `test`.`t2`.`a` and `test`.`t2`.`a` in (3,4) and `test`.`t0`.`b` / 10 = `test`.`t2`.`a` - 1
 select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = t2.a-1;
@@ -164,7 +164,7 @@
 explain extended select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = 4;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t2	range	idx	idx	5	NULL	2	100.00	Using where; Using index
-1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	25.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	t0	ALL	idx	NULL	NULL	NULL	50	24.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t0`.`tp` AS `tp`,`test`.`t0`.`a` AS `a`,`test`.`t0`.`b` AS `b`,`test`.`t0`.`c` AS `c`,`test`.`t2`.`a` AS `a` from `test`.`t0` join `test`.`t2` where `test`.`t0`.`a` = `test`.`t2`.`a` and `test`.`t2`.`a` in (3,4) and `test`.`t0`.`b` / 10 = 4
 select * from t0,t2 where t2.a in (3,4) and t0.a=t2.a and (t0.b / 10) = 4;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.partition_mrr_myisam/'
main.partition_myisam                    [ pass ]   1100
ReplayTest: Loading context 
main.partition_order                     [ pass ]     90
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.partition_pruning                   [ pass ]   2628
main.partition_rename_longfilename       [ pass ]      9
main.partition_sp                        [ pass ]      6
main.partition_symlink                   [ pass ]     35
main.partition_sync                      [ pass ]     16
main.partition_truncate                  [ pass ]      7
main.partition_ucs2                      [ pass ]      3
main.partition_utf8                      [ pass ]     14
main.partition_utf8-debug                [ pass ]     19
main.partition_windows                   [ skipped ]  Need windows
main.ps_mem_leaks                        [ pass ]     62
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.sargable_casefold_part              [ pass ]     16
main.stat_tables_partition               [ pass ]      9
main.vector_partition                    [ pass ]      5
main.ssl_7937 'x509v3'                   [ pass ]     76
main.ssl_verify_ip                       [ pass ]     22
main.ssl_7937 'ssl'                      [ pass ]     62
main.failed_auth_unixsocket              [ pass ]   1049
main.password_expiration_unix_socket     [ pass ]     17
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_misc                           [ pass ]   2857
main.plugin_load                         [ pass ]      2
main.plugin_load_option                  [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.index_merge_myisam                  [ fail ]
        Test ended at 2026-04-26 19:55:20

CURRENT_TEST: main.index_merge_myisam
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/index_merge_myisam.result	2026-04-24 13:53:12.109383538 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/index_merge_myisam.reject	2026-04-26 19:55:20.165646819 +0300
@@ -587,7 +587,9 @@
 SELECT * FROM t1 FORCE INDEX(a,b) WHERE a LIKE 'a%' OR b LIKE 'b%' 
 ORDER BY a,b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index_merge	a,b	a,b	131,131	NULL	64	Using sort_union(a,b); Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 436.
 SELECT * FROM t1 FORCE INDEX(a,b) WHERE a LIKE 'a%' OR b LIKE 'b%' 
 ORDER BY a,b;
 SET SESSION sort_buffer_size=DEFAULT;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.index_merge_myisam/'
main.analyze_format_json                 [ pass ]   2378
main.ctype_utf8mb4_0900_ai_ci_casefold   [ pass ]   2373
main.ctype_utf8mb4_general1400_as_ci_casefold [ pass ]   2318
main.ctype_utf8mb4_general_ci_casefold   [ pass ]   2325
main.ctype_utf8mb4_general_ci_ws         [ pass ]   1820
main.ctype_utf8mb4_turkish_ci_casefold   [ pass ]   2363
main.ctype_utf8mb4_uca1400_ai_ci_casefold [ pass ]   2390
main.ctype_utf8mb4_unicode_520_ci_casefold [ pass ]   2378
main.ctype_utf8mb4_unicode_ci_casefold   [ pass ]   2362
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.order_by                            [ fail ]
        Test ended at 2026-04-26 19:55:46

CURRENT_TEST: main.order_by
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/order_by.result	2026-04-24 13:53:12.161384757 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/order_by.reject	2026-04-26 19:55:46.230217117 +0300
@@ -884,7 +884,9 @@
 ('25295','02071491000'),('25296','02071491000'),('25297','02071499000');
 explain select * from t1 where wnid like '0101%' order by wnid;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	wnid14,wnid	wnid	13	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1005.
 select * from t1 where wnid like '0101%' order by wnid;
 sid	wnid
 10100	01019000000
@@ -1195,7 +1197,7 @@
 1	SIMPLE	t2	index	k2	k3	5	NULL	111	Using where
 EXPLAIN SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 4000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	k2	k2	5	NULL	7341	Using index condition; Using filesort
+1	SIMPLE	t2	ALL	k2	NULL	NULL	NULL	40960	Using where; Using filesort
 EXPLAIN SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 6000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t2	ALL	k2	NULL	NULL	NULL	40960	Using where; Using filesort
@@ -3760,8 +3762,9 @@
 explain extended 
 select * from t4 where b < 5000 order by a limit 600;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t4	index	NULL	a	5	NULL	1188	100.00	Using where
+1	SIMPLE	t4	index	NULL	a	5	NULL	611	100.00	Using where
 Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t4 with key_number: doesn't exist in list_index_read_costs
 Note	1003	select `test`.`t4`.`a` AS `a`,`test`.`t4`.`b` AS `b`,`test`.`t4`.`c` AS `c`,`test`.`t4`.`filler1` AS `filler1`,`test`.`t4`.`filler2` AS `filler2` from `test`.`t4` where `test`.`t4`.`b` < 5000 order by `test`.`t4`.`a` limit 600
 set histogram_size=@tmp_h, histogram_type=@tmp_ht, use_stat_tables=@tmp_u,
 optimizer_use_condition_selectivity=@tmp_o;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.order_by/'
***Warnings generated in error logs during shutdown after running tests: main.ctype_utf8mb4_0900_ai_ci_casefold main.ctype_utf8mb4_general1400_as_ci_casefold main.ctype_utf8mb4_uca1400_ai_ci_casefold main.order_by main.ctype_utf8mb4_general_ci_ws main.ctype_utf8mb4_unicode_520_ci_casefold main.ctype_utf8mb4_turkish_ci_casefold main.analyze_format_json main.ctype_utf8mb4_unicode_ci_casefold main.ctype_utf8mb4_general_ci_casefold

2026-04-26 19:55:45 41 [ERROR] mariadbd: Out of sort memory, consider increasing server sort buffer size

ReplayTest: Loading context 
main.rowid_filter_myisam_debug           [ pass ]     93
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f2 does not exist
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f2 does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_mat                       [ fail ]
        Test ended at 2026-04-26 19:55:48

CURRENT_TEST: main.subselect_mat
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_mat.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_mat.reject	2026-04-26 19:55:47.966255100 +0300
@@ -531,7 +531,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
+Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = convert('1 - 01' using latin1) or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = convert('2 - 01' using latin1) or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
 select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
 a1	a2
 1 - 01	2 - 01
@@ -541,7 +541,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
+Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = convert('1 - 01' using latin1) or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = convert('2 - 01' using latin1) or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
 select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01' from dual);
 a1	a2
 1 - 01	2 - 01
@@ -689,9 +689,9 @@
 where a1 in (select group_concat(b1) from t2_16 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_16	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_16	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_16	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,`test`.`t1_16`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` ), <primary_index_lookup>(`test`.`t1_16`.`a1` in <temporary table> on distinct_key where `test`.`t1_16`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` having <cache>(`test`.`t1_16`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_16`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_16
 where a1 in (select group_concat(b1) from t2_16 group by b2);
@@ -787,9 +787,9 @@
 where a1 in (select group_concat(b1) from t2_512 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` ), <primary_index_lookup>(`test`.`t1_512`.`a1` in <temporary table> on distinct_key where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having <cache>(`test`.`t1_512`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_512`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_512
 where a1 in (select group_concat(b1) from t2_512 group by b2);
@@ -804,9 +804,9 @@
 where a1 in (select group_concat(b1) from t2_512 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` ), <primary_index_lookup>(`test`.`t1_512`.`a1` in <temporary table> on distinct_key where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having <cache>(`test`.`t1_512`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_512`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_512
 where a1 in (select group_concat(b1) from t2_512 group by b2);
@@ -888,9 +888,9 @@
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` ), <primary_index_lookup>(`test`.`t1_1024`.`a1` in <temporary table> on distinct_key where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having <cache>(`test`.`t1_1024`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1024`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1024
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
@@ -906,9 +906,9 @@
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` ), <primary_index_lookup>(`test`.`t1_1024`.`a1` in <temporary table> on distinct_key where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having <cache>(`test`.`t1_1024`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1024`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1024
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
@@ -991,9 +991,9 @@
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` ), <primary_index_lookup>(`test`.`t1_1025`.`a1` in <temporary table> on distinct_key where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having <cache>(`test`.`t1_1025`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1025`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1025
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
@@ -1009,9 +1009,9 @@
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	MATERIALIZED	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a1` in ( <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` ), <primary_index_lookup>(`test`.`t1_1025`.`a1` in <temporary table> on distinct_key where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`))))
+Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having <cache>(`test`.`t1_1025`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1025`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1025
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
@@ -2002,8 +2002,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	NULL	NULL	NULL	NULL	1	
 1	PRIMARY	t2	index	NULL	c	5	NULL	8	Using where; Using index
-2	MATERIALIZED	s2	ref	d	d	4	const	2	Using where; Using index
-2	MATERIALIZED	s1	ALL	NULL	NULL	NULL	NULL	8	Using where; Using join buffer (flat, BNL join)
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	8	
 SELECT a, c FROM t1, t2
 WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
@@ -2021,8 +2020,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	NULL	NULL	NULL	NULL	1	
 1	PRIMARY	t2	index	NULL	c	5	NULL	8	Using where; Using index
-2	MATERIALIZED	s2	ref	d	d	4	const	2	Using where; Using index
-2	MATERIALIZED	s1	ALL	NULL	NULL	NULL	NULL	8	Using where; Using join buffer (flat, BNL join)
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	8	
 SELECT a, c FROM t1, t2
 WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
@@ -2570,13 +2568,7 @@
 explain extended select * from t1
 left join t4 on t1.b = t4.id
 where f1(t1.id, '1980-01-01') in (select id from t2 where x=1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	Using where
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t4`.`id` AS `id`,`test`.`t4`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) left join `test`.`t4` on(`test`.`t4`.`id` = `test`.`t1`.`b`) where `test`.`t2`.`x` = 1 and `f1`(`test`.`t1`.`id`,'1980-01-01') = `test`.`t2`.`id`
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 # Non-deterministic function in left part of IN subq: semi-join is OK
 select * from t1
 left join t4 on t1.b = t4.id
@@ -2588,13 +2580,7 @@
 explain extended select * from t1
 left join t4 on t1.b = t4.id
 where f2(t1.id, '1980-01-01') in (select id from t2 where x=1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	Using where
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t4`.`id` AS `id`,`test`.`t4`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) left join `test`.`t4` on(`test`.`t4`.`id` = `test`.`t1`.`b`) where `test`.`t2`.`x` = 1 and `f2`(`test`.`t1`.`id`,'1980-01-01') = `test`.`t2`.`id`
+ReplayTest: Query error: FUNCTION test.f2 does not exist
 select t1.*, t4.*,
 (select max(t4.id) from t4 where t4.id=t1.b and sleep(0) = 0) as s
 from t1 left join t4 on t1.b = t4.id
@@ -2607,15 +2593,7 @@
 (select max(t4.id) from t4 where t4.id=t1.b and sleep(0) = 0) as s
 from t1 left join t4 on t1.b = t4.id
 where f2(t1.id, '1980-01-01') in (select id from t2 where x=1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	
-1	PRIMARY	<subquery3>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	Using where
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
-3	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	DEPENDENT SUBQUERY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
-Warnings:
-Note	1276	Field or reference 'test.t1.b' of SELECT #2 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t4`.`id` AS `id`,`test`.`t4`.`a` AS `a`,(/* select#2 */ select max(`test`.`t4`.`id`) from `test`.`t4` where `test`.`t4`.`id` = `test`.`t1`.`b` and sleep(0) = 0) AS `s` from `test`.`t1` semi join (`test`.`t2`) left join `test`.`t4` on(`test`.`t4`.`id` = `test`.`t1`.`b`) where `test`.`t2`.`x` = 1 and `f2`(`test`.`t1`.`id`,'1980-01-01') = `test`.`t2`.`id`
+ReplayTest: Query error: FUNCTION test.f2 does not exist
 drop function f1;
 drop function f2;
 drop table t1,t2,t3,t4;
@@ -2920,7 +2898,7 @@
 EXPLAIN
 SELECT * FROM t2 WHERE (SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
+1	PRIMARY	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 3	MATERIALIZED	t1	ALL	NULL	NULL	NULL	NULL	2	
 2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
 SELECT * FROM t2 WHERE (SELECT f3a FROM t3) NOT IN (SELECT f1a FROM t1);
@@ -2937,7 +2915,7 @@
 EXPLAIN
 SELECT * FROM t2 WHERE (SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
+1	PRIMARY	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 3	MATERIALIZED	t1	ALL	NULL	NULL	NULL	NULL	2	
 2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
 SELECT * FROM t2 WHERE (SELECT f3a, f3b FROM t3) NOT IN (SELECT f1a, f1b FROM t1);

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_mat/'
main.opt_context_replay_basic            [ pass ]    150
main.multi_update_big                    [ pass ]  16739
ReplayTest: Loading context 
main.error_simulation                    [ pass ]     52
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.selectivity_notembedded             [ fail ]
        Test ended at 2026-04-26 19:56:07

CURRENT_TEST: main.selectivity_notembedded
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_notembedded.result	2026-04-24 13:53:12.193385508 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_notembedded.reject	2026-04-26 19:56:07.074691995 +0300
@@ -124,7 +124,7 @@
           "loops": 1,
           "rows": 100,
           "cost": 0.0295225,
-          "filtered": 53.32928848,
+          "filtered": 28.51019669,
           "attached_condition": "t1.col0 > 1 and t1.col1 > 1 and t1.col2 > 1 and t1.col3 > 1 and t1.col4 > 1 and t1.col5 > 1 and t1.col6 > 1 and t1.col7 > 1 and t1.col8 > 1 and t1.col9 > 1 and t1.col10 > 1 and t1.col11 > 1 and t1.col12 > 1 and t1.col13 > 1 and t1.col14 > 1 and t1.col15 > 1 and t1.col16 > 1 and t1.col17 > 1 and t1.col18 > 1 and t1.col19 > 1 and t1.col20 > 1 and t1.col21 > 1 and t1.col22 > 1 and t1.col23 > 1 and t1.col24 > 1 and t1.col25 > 1 and t1.col26 > 1 and t1.col27 > 1 and t1.col28 > 1 and t1.col29 > 1 and t1.col30 > 1 and t1.col31 > 1 and t1.col32 > 1 and t1.col33 > 1 and t1.col34 > 1 and t1.col35 > 1 and t1.col36 > 1 and t1.col37 > 1 and t1.col38 > 1 and t1.col39 > 1 and t1.col40 > 1 and t1.col41 > 1 and t1.col42 > 1 and t1.col43 > 1 and t1.col44 > 1 and t1.col45 > 1 and t1.col46 > 1 and t1.col47 > 1 and t1.col48 > 1 and t1.col49 > 1 and t1.col50 > 1 and t1.col51 > 1 and t1.col52 > 1 and t1.col53 > 1 and t1.col54 > 1 and t1.col55 > 1 and t1.col56 > 1 and t1.col57 > 1 and t1.col58 > 1 and t1.col59 > 1 and t1.col60 > 1 and t1.col61 > 1 and t1.col62 > 1 and t1.col63 > 1 and t1.col64 > 1 and t1.col65 > 1 and t1.col66 > 1 and t1.col67 > 1 and t1.col68 > 1 and t1.col69 > 1 and t1.col70 > 1 and t1.col71 > 1 and t1.col72 > 1 and t1.col73 > 1 and t1.col74 > 1 and t1.col75 > 1 and t1.col76 > 1 and t1.col77 > 1 and t1.col78 > 1 and t1.col79 > 1 and t1.col80 > 1 and t1.col81 > 1 and t1.col82 > 1 and t1.col83 > 1 and t1.col84 > 1 and t1.col85 > 1 and t1.col86 > 1 and t1.col87 > 1 and t1.col88 > 1 and t1.col89 > 1 and t1.col90 > 1 and t1.col91 > 1 and t1.col92 > 1 and t1.col93 > 1 and t1.col94 > 1 and t1.col95 > 1 and t1.col96 > 1 and t1.col97 > 1 and t1.col98 > 1 and t1.col99 > 1 and t1.col100 > 1 and t1.col101 > 1 and t1.col102 > 1 and t1.col103 > 1 and t1.col104 > 1 and t1.col105 > 1 and t1.col106 > 1 and t1.col107 > 1 and t1.col108 > 1 and t1.col109 > 1 and t1.col110 > 1 and t1.col111 > 1 and t1.col112 > 1 and t1.col113 > 1 and t1.col114 > 1 and t1.col115 > 1 and t1.col116 > 1 and t1.col117 > 1 and t1.col118 > 1 and t1.col119 > 1 and t1.col120 > 1 and t1.col121 > 1 and t1.col122 > 1 and t1.col123 > 1 and t1.col124 > 1 and t1.col125 > 1 and t1.col126 > 1 and t1.col127 > 1 and t1.col128 > 1 and t1.col129 > 1 and t1.col130 > 1 and t1.col131 > 1 and t1.col132 > 1 and t1.col133 > 1 and t1.col134 > 1 and t1.col135 > 1 and t1.col136 > 1 and t1.col137 > 1 and t1.col138 > 1 and t1.col139 > 1 and t1.col140 > 1 and t1.col141 > 1 and t1.col142 > 1 and t1.col143 > 1 and t1.col144 > 1 and t1.col145 > 1 and t1.col146 > 1 and t1.col147 > 1 and t1.col148 > 1 and t1.col149 > 1 and t1.col150 > 1 and t1.col151 > 1 and t1.col152 > 1 and t1.col153 > 1 and t1.col154 > 1 and t1.col155 > 1 and t1.col156 > 1 and t1.col157 > 1 and t1.col158 > 1 and t1.col159 > 1"
         }
       }
@@ -136,14 +136,7 @@
 from 
 information_schema.optimizer_trace;
 JS
-[
-    {
-        "column_name": "col0",
-        "ranges": 
-        ["1 < col0"],
-        "selectivity_from_histogram": 0.996078431
-    }
-]
+NULL
 $query_tbl;
 EXPLAIN
 {
@@ -158,7 +151,7 @@
           "loops": 1,
           "rows": 100,
           "cost": 0.0295225,
-          "filtered": 53.32928848,
+          "filtered": 28.51019669,
           "attached_condition": "t1.col0 > 1 and t1.col1 > 1 and t1.col2 > 1 and t1.col3 > 1 and t1.col4 > 1 and t1.col5 > 1 and t1.col6 > 1 and t1.col7 > 1 and t1.col8 > 1 and t1.col9 > 1 and t1.col10 > 1 and t1.col11 > 1 and t1.col12 > 1 and t1.col13 > 1 and t1.col14 > 1 and t1.col15 > 1 and t1.col16 > 1 and t1.col17 > 1 and t1.col18 > 1 and t1.col19 > 1 and t1.col20 > 1 and t1.col21 > 1 and t1.col22 > 1 and t1.col23 > 1 and t1.col24 > 1 and t1.col25 > 1 and t1.col26 > 1 and t1.col27 > 1 and t1.col28 > 1 and t1.col29 > 1 and t1.col30 > 1 and t1.col31 > 1 and t1.col32 > 1 and t1.col33 > 1 and t1.col34 > 1 and t1.col35 > 1 and t1.col36 > 1 and t1.col37 > 1 and t1.col38 > 1 and t1.col39 > 1 and t1.col40 > 1 and t1.col41 > 1 and t1.col42 > 1 and t1.col43 > 1 and t1.col44 > 1 and t1.col45 > 1 and t1.col46 > 1 and t1.col47 > 1 and t1.col48 > 1 and t1.col49 > 1 and t1.col50 > 1 and t1.col51 > 1 and t1.col52 > 1 and t1.col53 > 1 and t1.col54 > 1 and t1.col55 > 1 and t1.col56 > 1 and t1.col57 > 1 and t1.col58 > 1 and t1.col59 > 1 and t1.col60 > 1 and t1.col61 > 1 and t1.col62 > 1 and t1.col63 > 1 and t1.col64 > 1 and t1.col65 > 1 and t1.col66 > 1 and t1.col67 > 1 and t1.col68 > 1 and t1.col69 > 1 and t1.col70 > 1 and t1.col71 > 1 and t1.col72 > 1 and t1.col73 > 1 and t1.col74 > 1 and t1.col75 > 1 and t1.col76 > 1 and t1.col77 > 1 and t1.col78 > 1 and t1.col79 > 1 and t1.col80 > 1 and t1.col81 > 1 and t1.col82 > 1 and t1.col83 > 1 and t1.col84 > 1 and t1.col85 > 1 and t1.col86 > 1 and t1.col87 > 1 and t1.col88 > 1 and t1.col89 > 1 and t1.col90 > 1 and t1.col91 > 1 and t1.col92 > 1 and t1.col93 > 1 and t1.col94 > 1 and t1.col95 > 1 and t1.col96 > 1 and t1.col97 > 1 and t1.col98 > 1 and t1.col99 > 1 and t1.col100 > 1 and t1.col101 > 1 and t1.col102 > 1 and t1.col103 > 1 and t1.col104 > 1 and t1.col105 > 1 and t1.col106 > 1 and t1.col107 > 1 and t1.col108 > 1 and t1.col109 > 1 and t1.col110 > 1 and t1.col111 > 1 and t1.col112 > 1 and t1.col113 > 1 and t1.col114 > 1 and t1.col115 > 1 and t1.col116 > 1 and t1.col117 > 1 and t1.col118 > 1 and t1.col119 > 1 and t1.col120 > 1 and t1.col121 > 1 and t1.col122 > 1 and t1.col123 > 1 and t1.col124 > 1 and t1.col125 > 1 and t1.col126 > 1 and t1.col127 > 1 and t1.col128 > 1 and t1.col129 > 1 and t1.col130 > 1 and t1.col131 > 1 and t1.col132 > 1 and t1.col133 > 1 and t1.col134 > 1 and t1.col135 > 1 and t1.col136 > 1 and t1.col137 > 1 and t1.col138 > 1 and t1.col139 > 1 and t1.col140 > 1 and t1.col141 > 1 and t1.col142 > 1 and t1.col143 > 1 and t1.col144 > 1 and t1.col145 > 1 and t1.col146 > 1 and t1.col147 > 1 and t1.col148 > 1 and t1.col149 > 1 and t1.col150 > 1 and t1.col151 > 1 and t1.col152 > 1 and t1.col153 > 1 and t1.col154 > 1 and t1.col155 > 1 and t1.col156 > 1 and t1.col157 > 1 and t1.col158 > 1 and t1.col159 > 1"
         }
       }
@@ -170,14 +163,7 @@
 from 
 information_schema.optimizer_trace;
 JS
-[
-    {
-        "column_name": "col159",
-        "ranges": 
-        ["1 < col159"],
-        "selectivity_from_histogram": 0.996078431
-    }
-]
+NULL
 # 
 # Check if not being able to infer anything for the first MAX_KEY
 #   columns doesn't prevent further inferences.
@@ -199,7 +185,7 @@
           "loops": 1,
           "rows": 100,
           "cost": 0.0295225,
-          "filtered": 99.60784149,
+          "filtered": 99.21875,
           "attached_condition": "(t1.col1 > 1 or t1.col2 > 1 or t1.col3 > 1 or t1.col4 > 1 or t1.col5 > 1 or t1.col6 > 1 or t1.col7 > 1 or t1.col8 > 1 or t1.col9 > 1 or t1.col10 > 1 or t1.col11 > 1 or t1.col12 > 1 or t1.col13 > 1 or t1.col14 > 1 or t1.col15 > 1 or t1.col16 > 1 or t1.col17 > 1 or t1.col18 > 1 or t1.col19 > 1 or t1.col20 > 1 or t1.col21 > 1 or t1.col22 > 1 or t1.col23 > 1 or t1.col24 > 1 or t1.col25 > 1 or t1.col26 > 1 or t1.col27 > 1 or t1.col28 > 1 or t1.col29 > 1 or t1.col30 > 1 or t1.col31 > 1 or t1.col32 > 1 or t1.col33 > 1 or t1.col34 > 1 or t1.col35 > 1 or t1.col36 > 1 or t1.col37 > 1 or t1.col38 > 1 or t1.col39 > 1 or t1.col40 > 1 or t1.col41 > 1 or t1.col42 > 1 or t1.col43 > 1 or t1.col44 > 1 or t1.col45 > 1 or t1.col46 > 1 or t1.col47 > 1 or t1.col48 > 1 or t1.col49 > 1 or t1.col50 > 1 or t1.col51 > 1 or t1.col52 > 1 or t1.col53 > 1 or t1.col54 > 1 or t1.col55 > 1 or t1.col56 > 1 or t1.col57 > 1 or t1.col58 > 1 or t1.col59 > 1 or t1.col60 > 1 or t1.col61 > 1 or t1.col62 > 1 or t1.col63 > 1 or t1.col64 > 1 or t1.col65 > 1 or t1.col66 > 1 or t1.col67 > 1 or t1.col68 > 1 or t1.col69 > 1 or t1.col70 > 1 or t1.col71 > 1 or t1.col72 > 1 or t1.col73 > 1 or t1.col74 > 1 or t1.col75 > 1 or t1.col76 > 1 or t1.col77 > 1 or t1.col78 > 1 or t1.col79 > 1 or t1.col80 > 1 or t1.col81 > 1 or t1.col82 > 1 or t1.col83 > 1 or t1.col84 > 1 or t1.col85 > 1 or t1.col86 > 1 or t1.col87 > 1 or t1.col88 > 1 or t1.col89 > 1 or t1.col90 > 1 or t1.col91 > 1 or t1.col92 > 1 or t1.col93 > 1 or t1.col94 > 1 or t1.col95 > 1 or t1.col96 > 1 or t1.col97 > 1 or t1.col98 > 1 or t1.col99 > 1 or t1.col100 > 1 or t1.col101 > 1 or t1.col102 > 1 or t1.col103 > 1 or t1.col104 > 1 or t1.col105 > 1 or t1.col106 > 1 or t1.col107 > 1 or t1.col108 > 1 or t1.col109 > 1 or t1.col110 > 1 or t1.col111 > 1 or t1.col112 > 1 or t1.col113 > 1 or t1.col114 > 1 or t1.col115 > 1 or t1.col116 > 1 or t1.col117 > 1 or t1.col118 > 1 or t1.col119 > 1 or t1.col120 > 1 or t1.col121 > 1 or t1.col122 > 1 or t1.col123 > 1 or t1.col124 > 1 or t1.col125 > 1 or t1.col126 > 1 or t1.col127 > 1 or t1.col128 > 1 or t1.col129 > 1 or t1.col130 > 1 or t1.col131 > 1 or t1.col132 > 1 or t1.col133 > 1 or t1.col134 > 1 or t1.col135 > 1 or t1.col136 > 1 or t1.col137 > 1 or t1.col138 > 1 or t1.col139 > 1 or t1.col140 > 1 or t1.col141 > 1 or t1.col142 > 1 or t1.col143 > 1 or t1.col144 > 1 or t1.col145 > 1 or t1.col146 > 1 or t1.col147 > 1 or t1.col148 > 1 or t1.col149 > 1 or t1.col150 > 1 or t1.col151 > 1 or t1.col152 > 1 or t1.col153 > 1 or t1.col154 > 1 or t1.col155 > 1 or t1.col156 > 1 or t1.col157 > 1 or t1.col158 > 1) and t1.col159 > 1"
         }
       }
@@ -211,16 +197,7 @@
 from 
 information_schema.optimizer_trace;
 JS
-[
-    [
-        {
-            "column_name": "col159",
-            "ranges": 
-            ["1 < col159"],
-            "selectivity_from_histogram": 0.996078431
-        }
-    ]
-]
+NULL
 set optimizer_trace=@trace_tmp;
 drop table t1;
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity_notembedded/'
main.stat_tables_myisam_debug            [ pass ]     56
main.analyze_format_json_timings         [ pass ]    159
main.order_by_pack_big                   [ pass ]  19885
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.bool                                [ pass ]     52
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.cset_narrowing                      [ fail ]
        Test ended at 2026-04-26 19:56:29

CURRENT_TEST: main.cset_narrowing
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/cset_narrowing.result	2026-04-24 13:53:12.025381567 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/cset_narrowing.reject	2026-04-26 19:56:29.223232864 +0300
@@ -242,28 +242,15 @@
 explain
 select * from t10, t1 where t10.mb4=t1.mb3 and t10.pk=3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t10	const	PRIMARY	PRIMARY	4	const	1	
-1	SIMPLE	t1	ref	mb3	mb3	99	const	3	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 370.
 select
 json_detailed(json_extract(trace, '$**.range_scan_alternatives')) as JS
 from
 information_schema.optimizer_trace;
 JS
-[
-    [
-        {
-            "index": "mb3",
-            "ranges": 
-            ["(�) <= (mb3) <= (�)"],
-            "rowid_ordered": true,
-            "using_mrr": false,
-            "index_only": false,
-            "rows": 3,
-            "cost": "COST_REPLACED",
-            "chosen": true
-        }
-    ]
-]
+NULL
 select * from t10, t1 where t10.mb4=t1.mb3 and t10.pk=3;
 pk	mb4name	mb4	mb3name	mb3
 3	mb4-smiley	😊	mb3-replacement-char	�
@@ -276,39 +263,13 @@
 {
   "query_block": {
     "select_id": 1,
-    "cost": "COST_REPLACED",
-    "nested_loop": [
-      {
-        "table": {
-          "table_name": "t10",
-          "access_type": "const",
-          "possible_keys": ["PRIMARY"],
-          "key": "PRIMARY",
-          "key_length": "4",
-          "used_key_parts": ["pk"],
-          "ref": ["const"],
-          "rows": 1,
-          "filtered": 100
-        }
-      },
-      {
-        "table": {
-          "table_name": "t1",
-          "access_type": "range",
-          "possible_keys": ["mb3"],
-          "key": "mb3",
-          "key_length": "99",
-          "used_key_parts": ["mb3"],
-          "loops": 1,
-          "rows": 4,
-          "cost": "COST_REPLACED",
-          "filtered": 100,
-          "index_condition": "t1.mb3 = '????' or t1.mb3 = 'hello'"
-        }
-      }
-    ]
+    "table": {
+      "message": "Impossible WHERE noticed after reading const tables"
+    }
   }
 }
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 401.
 explain format=json
 select * from t10, t1 where t1.mb3>t10.mb4 and t10.pk=3;
 EXPLAIN
@@ -381,7 +342,7 @@
           "key_length": "131",
           "used_key_parts": ["mb4"],
           "loops": 1,
-          "rows": 3,
+          "rows": 1,
           "cost": "COST_REPLACED",
           "filtered": 100,
           "index_condition": "t2.mb4 > '????'"
@@ -390,6 +351,8 @@
     ]
   }
 }
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(????) < (mb4), ] doesn't exist in the list of ranges for table_name test.t2 and index_name mb4
 #
 # Check multiple equalities
 #
@@ -454,27 +417,7 @@
 select json_detailed(json_extract(trace, '$**.condition_processing')) as JS
 from information_schema.optimizer_trace;
 JS
-[
-    {
-        "condition": "WHERE",
-        "original_condition": "t1.mb3 = t2.mb4 and t2.mb4 = t10.mb4 and concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe'",
-        "steps": 
-        [
-            {
-                "transformation": "equality_propagation",
-                "resulting_condition": "concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe' and multiple equal(t1.mb3, t2.mb4, t10.mb4)"
-            },
-            {
-                "transformation": "constant_propagation",
-                "resulting_condition": "concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe' and multiple equal(t1.mb3, t2.mb4, t10.mb4)"
-            },
-            {
-                "transformation": "trivial_condition_removal",
-                "resulting_condition": "concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe' and multiple equal(t1.mb3, t2.mb4, t10.mb4)"
-            }
-        ]
-    }
-]
+NULL
 select straight_join * from t10,t1 force index(mb3),t2
 where
 t1.mb3=t2.mb4 and t2.mb4=t10.mb4 and concat(t1.mb3, t2.mb4, t10.mb4)<>'Bebebe';
@@ -545,27 +488,7 @@
 select json_detailed(json_extract(trace, '$**.condition_processing')) as JS
 from information_schema.optimizer_trace;
 JS
-[
-    {
-        "condition": "WHERE",
-        "original_condition": "t1.mb3 = t2.mb4 and t2.mb4 = t10.mb4 and t10.mb4 = 'hello' and concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe'",
-        "steps": 
-        [
-            {
-                "transformation": "equality_propagation",
-                "resulting_condition": "t10.mb4 = 'hello' and concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe' and multiple equal(t1.mb3, t2.mb4, t10.mb4)"
-            },
-            {
-                "transformation": "constant_propagation",
-                "resulting_condition": "t10.mb4 = 'hello' and concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe' and multiple equal(t1.mb3, t2.mb4, t10.mb4)"
-            },
-            {
-                "transformation": "trivial_condition_removal",
-                "resulting_condition": "t10.mb4 = 'hello' and concat(convert(t1.mb3 using utf8mb4),t2.mb4,t10.mb4) <> 'Bebebe' and multiple equal(t1.mb3, t2.mb4, t10.mb4)"
-            }
-        ]
-    }
-]
+NULL
 drop table t2;
 drop table t1, t10;
 set optimizer_switch=@tmp_csetn_os;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.cset_narrowing/'
main.ctype_ucs2_general_ci_casefold      [ pass ]    863
main.ctype_ucs2_general_ci_ws            [ pass ]    247
main.ctype_ucs2_general_mysql500_ci_casefold [ pass ]    794
main.ctype_ucs2_general_mysql500_ci_ws   [ pass ]    252
main.ctype_ucs2_turkish_ci_casefold      [ pass ]    821
main.ctype_ucs2_unicode_520_ci_casefold  [ pass ]    836
main.ctype_utf8mb3_general_ci_casefold   [ pass ]    820
main.ctype_utf8mb3_general_ci_ws         [ pass ]    230
main.ctype_utf8mb3_general_mysql500_ci_casefold [ pass ]    814
main.ctype_utf8mb3_general_mysql500_ci_ws [ pass ]    231
main.ctype_utf8mb3_turkish_ci_casefold   [ pass ]    867
main.ctype_utf8mb3_unicode_520_ci_casefold [ pass ]    868
main.ctype_utf8mb4_general1400_as_ci_ws  [ pass ]   3230
main.delete_returning                    [ pass ]     20
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.derived                             [ pass ]   1528
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.derived_cond_pushdown               [ fail ]
        Test ended at 2026-04-26 19:56:47

CURRENT_TEST: main.derived_cond_pushdown
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/derived_cond_pushdown.result	2026-04-24 13:55:48.325038873 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/derived_cond_pushdown.reject	2026-04-26 19:56:47.203670488 +0300
@@ -9711,7 +9711,7 @@
               "rows": 2,
               "cost": "COST_REPLACED",
               "filtered": 100,
-              "attached_condition": "v1.b = 2",
+              "attached_condition": "v1.b = 0",
               "materialized": {
                 "query_block": {
                   "select_id": 3,
@@ -9725,7 +9725,7 @@
                         "rows": 2,
                         "cost": "COST_REPLACED",
                         "filtered": 100,
-                        "attached_condition": "t1.b = 2"
+                        "attached_condition": "t1.b = 0"
                       }
                     }
                   ]
@@ -9786,7 +9786,7 @@
           "rows": 2,
           "cost": "COST_REPLACED",
           "filtered": 100,
-          "attached_condition": "v1.f = 2",
+          "attached_condition": "v1.f = 0",
           "materialized": {
             "query_block": {
               "select_id": 3,
@@ -9800,7 +9800,7 @@
                     "rows": 2,
                     "cost": "COST_REPLACED",
                     "filtered": 100,
-                    "attached_condition": "t.f = 2"
+                    "attached_condition": "t.f = 0"
                   }
                 }
               ]
@@ -9817,7 +9817,7 @@
             "rows": 2,
             "cost": "COST_REPLACED",
             "filtered": 100,
-            "attached_condition": "v2.pk > 2"
+            "attached_condition": "v2.pk > 0"
           },
           "buffer_type": "flat",
           "buffer_size": "119",
@@ -9839,7 +9839,7 @@
                     "rows": 1,
                     "cost": "COST_REPLACED",
                     "filtered": 100,
-                    "index_condition": "t.pk > 2"
+                    "index_condition": "t.pk > 0"
                   }
                 }
               ]
@@ -9850,6 +9850,8 @@
     ]
   }
 }
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(0) < (pk), ] doesn't exist in the list of ranges for table_name test.t and index_name PRIMARY
 DROP VIEW v;
 DROP TABLE t;
 #
@@ -20033,7 +20035,7 @@
           "key_length": "128",
           "used_key_parts": ["c"],
           "ref": ["test.t3.c"],
-          "loops": 3,
+          "loops": 2,
           "rows": 1,
           "cost": "COST_REPLACED",
           "filtered": 100,
@@ -20198,7 +20200,7 @@
           "key_length": "128",
           "used_key_parts": ["c"],
           "ref": ["test.t3.c"],
-          "loops": 80.99999987,
+          "loops": 53.99999991,
           "rows": 1,
           "cost": "COST_REPLACED",
           "filtered": 100,
@@ -20325,7 +20327,7 @@
           "key_length": "128",
           "used_key_parts": ["c"],
           "ref": ["test.t3.c"],
-          "loops": 3,
+          "loops": 2,
           "rows": 1,
           "cost": "COST_REPLACED",
           "filtered": 100,
@@ -20741,7 +20743,7 @@
           "key_length": "128",
           "used_key_parts": ["c"],
           "ref": ["test.t3.c"],
-          "loops": 80.99999987,
+          "loops": 53.99999991,
           "rows": 10,
           "cost": "COST_REPLACED",
           "filtered": 100,

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.derived_cond_pushdown/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.derived_view                        [ fail ]
        Test ended at 2026-04-26 19:56:49

CURRENT_TEST: main.derived_view
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/derived_view.result	2026-04-24 13:55:48.329038967 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/derived_view.reject	2026-04-26 19:56:48.959713160 +0300
@@ -76,14 +76,14 @@
 show status like 'Handler_read%';
 Variable_name	Value
 Handler_read_first	0
-Handler_read_key	0
+Handler_read_key	3
 Handler_read_last	0
 Handler_read_next	0
 Handler_read_prev	0
 Handler_read_retry	0
 Handler_read_rnd	0
 Handler_read_rnd_deleted	0
-Handler_read_rnd_next	0
+Handler_read_rnd_next	2
 flush status;
 select * from (select * from t1 where f1 in (2,3)) tt where f11=2;
 f1	f11
@@ -165,14 +165,14 @@
 show status like 'Handler_read%';
 Variable_name	Value
 Handler_read_first	0
-Handler_read_key	0
+Handler_read_key	3
 Handler_read_last	0
 Handler_read_next	0
 Handler_read_prev	0
 Handler_read_retry	0
 Handler_read_rnd	0
 Handler_read_rnd_deleted	0
-Handler_read_rnd_next	0
+Handler_read_rnd_next	2
 flush status;
 select * from v4 where f2 in (1,3);
 f2	f22
@@ -233,14 +233,14 @@
 show status like 'Handler_read%';
 Variable_name	Value
 Handler_read_first	0
-Handler_read_key	0
+Handler_read_key	6
 Handler_read_last	0
 Handler_read_next	0
 Handler_read_prev	0
 Handler_read_retry	0
 Handler_read_rnd	0
 Handler_read_rnd_deleted	0
-Handler_read_rnd_next	0
+Handler_read_rnd_next	2
 flush status;
 select * from t1 join (select * from t2 group by f2) tt on f1=f2;
 f1	f11	f2	f22
@@ -344,14 +344,14 @@
 show status like 'Handler_read%';
 Variable_name	Value
 Handler_read_first	0
-Handler_read_key	0
+Handler_read_key	6
 Handler_read_last	0
 Handler_read_next	0
 Handler_read_prev	0
 Handler_read_retry	0
 Handler_read_rnd	0
 Handler_read_rnd_deleted	0
-Handler_read_rnd_next	0
+Handler_read_rnd_next	2
 flush status;
 select * from t1 join v2 on f1=f2;
 f1	f11	f2	f22
@@ -573,7 +573,7 @@
 5	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	11	100.00	Using where; Using temporary; Using filesort
 3	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	11	100.00	Using where; Using temporary; Using filesort
 Warnings:
-Note	1003	/* select#1 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11`,`tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` join (/* select#5 */ select `t1`.`f1` AS `f1`,`t1`.`f11` AS `f11` from `test`.`t1` where `t1`.`f1` < 7 and `t1`.`f1` > 2 and `t1`.`f1` > 2 group by `t1`.`f1`) `tt` where `tt`.`f1` = `tt`.`f1` and `tt`.`f1` > 2 and `tt`.`f1` > 2
+Note	1003	/* select#1 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11`,`tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` join (/* select#5 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` = `tt`.`f1` and `tt`.`f1` > 2 and `tt`.`f1` > 2
 explain format=json  select * from 
 (select * from (select * from t1 where f1 < 7 group by f1) tt where f1 > 2) x
 join 
@@ -695,7 +695,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	11	100.00	Using where
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	11	100.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
-Note	1003	select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`t1`.`f1` AS `f1`,`t1`.`f11` AS `f11` from `test`.`t1` join `test`.`t1` where `t1`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7
+Note	1003	select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11`,`test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` join `test`.`t1` where `test`.`t1`.`f1` = `test`.`t1`.`f1` and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 and `test`.`t1`.`f1` < 7
 select * from 
 (select * from 
 (select * from t1 where f1 < 7 ) tt where f1 > 2 ) x
@@ -723,7 +723,7 @@
 2	DERIVED	<derived3>	ALL	NULL	NULL	NULL	NULL	11	100.00	Using where; Using temporary; Using filesort
 3	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	11	100.00	Using where; Using temporary; Using filesort
 Warnings:
-Note	1003	/* select#1 */ select `x`.`f1` AS `f1`,`x`.`f11` AS `f11`,`z`.`f1` AS `f1`,`z`.`f11` AS `f11` from (/* select#2 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `x` join (/* select#4 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#5 */ select `t1`.`f1` AS `f1`,`t1`.`f11` AS `f11` from `test`.`t1` where `t1`.`f1` < 7 and `t1`.`f1` > 2 group by `t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `z` where `z`.`f1` = `x`.`f1`
+Note	1003	/* select#1 */ select `x`.`f1` AS `f1`,`x`.`f11` AS `f11`,`z`.`f1` AS `f1`,`z`.`f11` AS `f11` from (/* select#2 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#3 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `x` join (/* select#4 */ select `tt`.`f1` AS `f1`,`tt`.`f11` AS `f11` from (/* select#5 */ select `test`.`t1`.`f1` AS `f1`,`test`.`t1`.`f11` AS `f11` from `test`.`t1` where `test`.`t1`.`f1` < 7 and `test`.`t1`.`f1` > 2 group by `test`.`t1`.`f1`) `tt` where `tt`.`f1` > 2 group by `tt`.`f1`) `z` where `z`.`f1` = `x`.`f1`
 explain format=json select * from 
 (select * from 
 (select * from t1 where f1 < 7 group by f1) tt where f1 > 2 group by f1) x
@@ -1706,8 +1706,7 @@
 EXPLAIN
 SELECT * FROM (SELECT * FROM (SELECT @b) AS t) AS s;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived2>	system	NULL	NULL	NULL	NULL	1	
-2	DERIVED	<derived3>	system	NULL	NULL	NULL	NULL	1	
+1	PRIMARY	<derived3>	system	NULL	NULL	NULL	NULL	1	
 3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 SELECT * FROM (SELECT * FROM (SELECT @b) AS t) AS s;
 @b

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.derived_view/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.distinct                            [ pass ]    494
main.distinct_notembedded                [ pass ]     24
main.errors                              [ pass ]     23
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: explain format=json insert into t1 values ((select max(a) from t0))
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.explain_json                        [ fail ]
        Test ended at 2026-04-26 19:56:50

CURRENT_TEST: main.explain_json
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/explain_json.result	2026-04-24 13:53:12.081382880 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/explain_json.reject	2026-04-26 19:56:50.647754167 +0300
@@ -584,35 +584,7 @@
 }
 create table t1 like t0;
 explain format=json insert into t1 values ((select max(a) from t0));
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "table": {
-      "table_name": "t1"
-    },
-    "subqueries": [
-      {
-        "query_block": {
-          "select_id": 2,
-          "cost": "COST_REPLACED",
-          "nested_loop": [
-            {
-              "table": {
-                "table_name": "t0",
-                "access_type": "ALL",
-                "loops": 1,
-                "rows": 10,
-                "cost": "COST_REPLACED",
-                "filtered": 100
-              }
-            }
-          ]
-        }
-      }
-    ]
-  }
-}
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 drop table t1;
 #
 # A derived table

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.explain_json/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.fetch_first                         [ pass ]    169
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_gconcat                        [ pass ]   1509
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_str                            [ fail ]
        Test ended at 2026-04-26 19:56:53

CURRENT_TEST: main.func_str
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/func_str.result	2026-04-24 13:55:48.333039060 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/func_str.reject	2026-04-26 19:56:53.571825177 +0300
@@ -949,10 +949,6 @@
 Warnings:
 Note	1003	select export_set(255,_latin2'y',_latin2'n',_latin2' ') AS `export_set(255,_latin2'y', _latin2'n', _latin2' ')`
 explain extended select FIELD('b' COLLATE latin1_bin,'A','B');
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-Warnings:
-Note	1003	select field('b' collate latin1_bin,'A','B') AS `FIELD('b' COLLATE latin1_bin,'A','B')`
 explain extended select FIND_IN_SET(_latin1'B', _latin1'a,b,c,d');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
@@ -5829,48 +5825,62 @@
 insert into t values ('ddd'), ('bbcd'), ('bba'), ('b%_cd'), ('aaa');
 explain select * from t where substr(c, 1, 2) = 'bb';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where substr(c, 1, 2) = 'bb';
 c
 bba
 bbcd
 explain select * from t where 'bb' = substr(c, 1, 2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where 'bb' = substr(c, 1, 2);
 c
 bba
 bbcd
 explain select * from t where left(c, 2) = 'bb';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where left(c, 2) = 'bb';
 c
 bba
 bbcd
 explain select * from t where 'bb' = left(c, 2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where 'bb' = left(c, 2);
 c
 bba
 bbcd
 explain select * from t where substr(c, 1, 4) = 'b%_c';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	1	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 select * from t where substr(c, 1, 4) = 'b%_c';
 c
 b%_cd
 explain select * from t where substr(c, 1, 2) = concat('b', 'b');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where substr(c, 1, 2) = concat('b', 'b');
 c
 bba
 bbcd
 explain select * from t where substr(c, 1, 2) = substr('bb1', 1, 2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where substr(c, 1, 2) = substr('bb1', 1, 2);
 c
 bba
@@ -5879,29 +5889,41 @@
 insert into t1 select seq, seq / 33 from seq_1_to_100;
 explain select * from t1 where substr(a, 1, 2)='80';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	35	NULL	1	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 354.
 explain select * from t1 where substr(a, 1, b)='80';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	35	NULL	1	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 354.
 create view v1 as select a,b from t1;
 explain select * from v1 where substr(a, 1, 2)='80';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	35	NULL	1	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 354.
 drop view v1;
 drop table t1;
 explain select * from t where substr(c, 1, 1) = 'bb';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where substr(c, 1, 1) = 'bb';
 c
 explain select * from t where substr(c, 1, 3) = 'bb';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where substr(c, 1, 3) = 'bb';
 c
 explain select * from t where substr(c, 1) = 'bb';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t	range	c	c	8	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 340.
 select * from t where substr(c, 1) = 'bb';
 c
 explain select * from t where substr(c, 1, 2) = substr(c, 2, 3);

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.func_str/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.group_by                            [ pass ]    834
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.group_by_cardinality                [ fail ]
        Test ended at 2026-04-26 19:56:55

CURRENT_TEST: main.group_by_cardinality
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/group_by_cardinality.result	2026-04-24 13:53:12.105383443 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/group_by_cardinality.reject	2026-04-26 19:56:55.127862950 +0300
@@ -26,33 +26,14 @@
 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	10	
-1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	20	Using join buffer (flat, BNL join)
+1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	21	Using join buffer (flat, BNL join)
 2	DERIVED	t1	index	NULL	groups_20	5	NULL	20000	Using index
 select
 json_detailed(json_extract(trace, '$**.materialized_output_cardinality'))
 from
 information_schema.optimizer_trace;
 json_detailed(json_extract(trace, '$**.materialized_output_cardinality'))
-[
-    {
-        "join_output_cardinality": 20000,
-        "estimation": 
-        [
-            {
-                "table": "t1",
-                "steps": 
-                [
-                    {
-                        "index_name": "groups_20",
-                        "cardinality": 20.99999895
-                    }
-                ],
-                "cardinality": 20.99999895
-            }
-        ],
-        "post_group_cardinality": 20.99999895
-    }
-]
+NULL
 # Case 2: one non- indexed column
 explain
 select *
@@ -71,26 +52,7 @@
 from
 information_schema.optimizer_trace;
 json_detailed(json_extract(trace, '$**.materialized_output_cardinality'))
-[
-    {
-        "join_output_cardinality": 20000,
-        "estimation": 
-        [
-            {
-                "table": "t1",
-                "steps": 
-                [
-                    {
-                        "column": "groups_20_2",
-                        "cardinality": 20.99999895
-                    }
-                ],
-                "cardinality": 20.99999895
-            }
-        ],
-        "post_group_cardinality": 20.99999895
-    }
-]
+NULL
 # Case 4: one indexed column, multiple tables
 create table t3(c int);
 insert into t3 select seq from seq_1_to_10;
@@ -102,7 +64,7 @@
 group by groups_20) TBL;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	10	
-1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	20	Using join buffer (flat, BNL join)
+1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	21	Using join buffer (flat, BNL join)
 2	DERIVED	t3	ALL	NULL	NULL	NULL	NULL	10	Using temporary; Using filesort
 2	DERIVED	t1	index	NULL	groups_20	5	NULL	20000	Using index; Using join buffer (flat, BNL join)
 select
@@ -110,26 +72,7 @@
 from
 information_schema.optimizer_trace;
 json_detailed(json_extract(trace, '$**.materialized_output_cardinality'))
-[
-    {
-        "join_output_cardinality": 200000,
-        "estimation": 
-        [
-            {
-                "table": "t1",
-                "steps": 
-                [
-                    {
-                        "index_name": "groups_20",
-                        "cardinality": 20.99999895
-                    }
-                ],
-                "cardinality": 20.99999895
-            }
-        ],
-        "post_group_cardinality": 20.99999895
-    }
-]
+NULL
 # Case 5: group by two tables
 explain
 select *
@@ -139,7 +82,7 @@
 group by groups_20, t3.c) TBL;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	10	
-1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	209	Using join buffer (flat, BNL join)
+1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	210	Using join buffer (flat, BNL join)
 2	DERIVED	t3	ALL	NULL	NULL	NULL	NULL	10	Using temporary; Using filesort
 2	DERIVED	t1	index	NULL	groups_20	5	NULL	20000	Using index; Using join buffer (flat, BNL join)
 select
@@ -147,32 +90,7 @@
 from
 information_schema.optimizer_trace;
 json_detailed(json_extract(trace, '$**.materialized_output_cardinality'))
-[
-    {
-        "join_output_cardinality": 200000,
-        "estimation": 
-        [
-            {
-                "table": "t1",
-                "steps": 
-                [
-                    {
-                        "index_name": "groups_20",
-                        "cardinality": 20.99999895
-                    }
-                ],
-                "cardinality": 20.99999895
-            },
-            {
-                "table": "t3",
-                "steps": 
-                [],
-                "cardinality": 10
-            }
-        ],
-        "post_group_cardinality": 209.9999895
-    }
-]
+NULL
 # Now, without an index
 explain
 select *
@@ -189,25 +107,6 @@
 from
 information_schema.optimizer_trace;
 json_detailed(json_extract(trace, '$**.materialized_output_cardinality'))
-[
-    {
-        "join_output_cardinality": 200000,
-        "estimation": 
-        [
-            {
-                "table": "t1",
-                "steps": 
-                [
-                    {
-                        "column": "groups_20",
-                        "cardinality": 20.99999895
-                    }
-                ],
-                "cardinality": 20.99999895
-            }
-        ],
-        "post_group_cardinality": 20.99999895
-    }
-]
+NULL
 set optimizer_trace=default;
 drop table t1, t2, t3;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.group_by_cardinality/'
main.information_schema_tables           [ pass ]    247
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'INSERT INTO'
ReplayTest: Failed query was: EXPLAIN INSERT INTO t1(id1,val1) VALUES (8,'i') RETURNING *
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT INTO t1(id1,val1) VALUES(9,'j') RETURNING id1
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
ReplayTest: Failed query was: EXPLAIN FORMAT="json" INSERT INTO t1(id1,val1) VALUES (10,'k') RETURNING id1
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: EXPLAIN INSERT INTO t1 VALUES(15,'q'),(16,'r') RETURNING *
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT INTO t1 VALUES (17,'s'),(18,'t') RETURNING *
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
ReplayTest: Failed query was: EXPLAIN FORMAT="json" INSERT INTO t1 VALUES(19,'u'),(20,'v') RETURNING id1
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.ins_duplicate' doesn't exist
ReplayTest: Failed query was: EXPLAIN INSERT INTO ins_duplicate(id,val) VALUES (2,'b') ON DUPLICATE KEY
UPDATE val='h' RETURNING val
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.ins_duplicate' doesn't exist
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT INTO ins_duplicate(id,val) VALUES (2,'b')
ON DUPLICATE KEY UPDATE val='i' RETURNING val
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.ins_duplicate' doesn't exist
ReplayTest: Failed query was: EXPLAIN FORMAT="json" INSERT INTO ins_duplicate(id,val) VALUES (2,'b')
ON DUPLICATE KEY UPDATE val='j' RETURNING val
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
ReplayTest: Failed query was: EXPLAIN INSERT INTO t1 SET id1=9, val1='i' RETURNING id1
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'val1' in 'RETURNING'
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT INTO t1 SET id1=10, val1='j' RETURNING val1
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'val1' in 'RETURNING'
ReplayTest: Failed query was: EXPLAIN FORMAT="json" INSERT INTO t1 SET id1=11, val1='k' RETURNING val1
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.insert_returning                    [ fail ]
        Test ended at 2026-04-26 19:56:56

CURRENT_TEST: main.insert_returning
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/insert_returning.result	2026-04-24 13:53:12.117383726 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/insert_returning.reject	2026-04-26 19:56:55.999884116 +0300
@@ -58,23 +58,11 @@
 6	f
 7	h
 EXPLAIN INSERT INTO t1(id1,val1) VALUES (8,'i') RETURNING *;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'INSERT INTO'
 EXPLAIN EXTENDED INSERT INTO t1(id1,val1) VALUES(9,'j') RETURNING id1;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Note	1003	insert into `test`.`t1`(id1,val1) values (9,'j')
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
 EXPLAIN FORMAT="json" INSERT INTO t1(id1,val1) VALUES (10,'k') RETURNING id1;
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "table": {
-      "table_name": "t1"
-    }
-  }
-}
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
 SELECT * FROM t1;
 id1	val1
 1	a
@@ -148,23 +136,11 @@
 13	o
 14	p
 EXPLAIN INSERT INTO t1 VALUES(15,'q'),(16,'r') RETURNING *;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 EXPLAIN EXTENDED INSERT INTO t1 VALUES (17,'s'),(18,'t') RETURNING *;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Note	1003	insert into `test`.`t1` values (17,'s'),(18,'t')
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 EXPLAIN FORMAT="json" INSERT INTO t1 VALUES(19,'u'),(20,'v') RETURNING id1;
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "table": {
-      "table_name": "t1"
-    }
-  }
-}
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
 SELECT * FROM t1;
 id1	val1
 1	a
@@ -234,25 +210,13 @@
 4
 EXPLAIN INSERT INTO ins_duplicate(id,val) VALUES (2,'b') ON DUPLICATE KEY
 UPDATE val='h' RETURNING val;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	ins_duplicate	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.ins_duplicate' doesn't exist
 EXPLAIN EXTENDED INSERT INTO ins_duplicate(id,val) VALUES (2,'b')
 ON DUPLICATE KEY UPDATE val='i' RETURNING val;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	ins_duplicate	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Note	1003	insert into `test`.`ins_duplicate`(id,val) values (2,'b') on duplicate key update `test`.`ins_duplicate`.`val` = 'i'
+ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.ins_duplicate' doesn't exist
 EXPLAIN FORMAT="json" INSERT INTO ins_duplicate(id,val) VALUES (2,'b')
 ON DUPLICATE KEY UPDATE val='j' RETURNING val;
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "table": {
-      "table_name": "ins_duplicate"
-    }
-  }
-}
+ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.ins_duplicate' doesn't exist
 INSERT INTO v1(id1, val1) VALUES (2,'d') ON DUPLICATE KEY UPDATE
 val1='d' RETURNING id1+id1 AS total, val1, id1 && id1, id1|id1, UPPER(val1),
 f(id1);
@@ -321,23 +285,11 @@
 Warnings:
 Warning	1062	Duplicate entry '8' for key 'PRIMARY'
 EXPLAIN INSERT INTO t1 SET id1=9, val1='i' RETURNING id1;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'id1' in 'RETURNING'
 EXPLAIN EXTENDED INSERT INTO t1 SET id1=10, val1='j' RETURNING val1;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Note	1003	insert into `test`.`t1`(id1,val1) values (10,'j')
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'val1' in 'RETURNING'
 EXPLAIN FORMAT="json" INSERT INTO t1 SET id1=11, val1='k' RETURNING val1;
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "table": {
-      "table_name": "t1"
-    }
-  }
-}
+ReplayTest: Direct EXPLAIN failed on replay server: 1054 Unknown column 'val1' in 'RETURNING'
 INSERT INTO v1 SET id1=26, val1='Z' RETURNING id1+id1 AS total,val1,
 id1 && id1, id1|id1, UPPER(val1),f(id1);
 total	val1	id1 && id1	id1|id1	UPPER(val1)	f(id1)

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.insert_returning/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join                                [ pass ]   1086
main.join_cache_cardinality              [ pass ]     13
main.join_cache_debug                    [ pass ]    626
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_nested                         [ pass ]    334
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_nested_jcl6                    [ pass ]    375
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Table 'seq_1_to_10' already exists
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/key.test"
ReplayTest: At line 632
main.key                                 [ fail ]
        Test ended at 2026-04-26 19:56:59

CURRENT_TEST: main.key
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/key.result	2026-04-24 13:53:12.125383913 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/key.reject	2026-04-26 19:56:59.771975635 +0300
@@ -497,7 +497,7 @@
 ALTER TABLE t1 DISABLE KEYS;
 EXPLAIN SELECT MAX(a) FROM t1 FORCE INDEX(a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	1	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
 drop table t1;
 CREATE TABLE t1 (
 a INTEGER auto_increment PRIMARY KEY,
@@ -631,19 +631,19 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	Using temporary; Using filesort
 SHOW STATUS LIKE 'Last_query_cost';
 Variable_name	Value
-Last_query_cost	0.014784
+Last_query_cost	0.024323
 EXPLAIN SELECT a, SUM( b ) FROM t1 USE INDEX( a ) GROUP BY a;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	Using temporary; Using filesort
 SHOW STATUS LIKE 'Last_query_cost';
 Variable_name	Value
-Last_query_cost	0.014784
+Last_query_cost	0.024323
 EXPLAIN SELECT a, SUM( b ) FROM t1 FORCE INDEX( a ) GROUP BY a;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	index	NULL	a	5	NULL	6	
 SHOW STATUS LIKE 'Last_query_cost';
 Variable_name	Value
-Last_query_cost	0.014784
+Last_query_cost	0.024323
 DROP TABLE t1;
 #
 # MDEV-21480: Unique key using ref access though eq_ref access can be used
@@ -727,7 +727,5 @@
 sum(a+b)
 10100
 explain select straight_join sum(a+b) from seq_1_to_10 as s, t1 force index (k2) where t1.a=s.seq;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	s	index	PRIMARY	PRIMARY	8	NULL	10	Using index
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	100	Using where; Using join buffer (flat, BNL join)
+ReplayTest: Query error: Table 'seq_1_to_10' already exists
 drop table t1;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.key/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.log_slow_debug                      [ pass ]    156
main.max_session_mem_used                [ pass ]     21
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1471 The target table v1 of the INSERT is not insertable-into
ReplayTest: Failed query was: EXPLAIN INSERT INTO v1 VALUES (10)
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1471 The target table v1 of the INSERT is not insertable-into
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT INTO v1 VALUES (10)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: EXPLAIN INSERT INTO t1 VALUES (3,10), (7,11), (3,11) ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT INTO t1 VALUES (3,10), (7,11), (3,11) ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);
ReplayTest: Loading context 
ReplayTest: Loading context 
main.myisam_explain_non_select_all       [ fail ]
        Test ended at 2026-04-26 19:57:05

CURRENT_TEST: main.myisam_explain_non_select_all
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/myisam_explain_non_select_all.result	2026-04-24 13:53:12.137384194 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/myisam_explain_non_select_all.reject	2026-04-26 19:57:05.556115866 +0300
@@ -19,7 +19,8 @@
 Note	1003	update `test`.`t1` set `test`.`t1`.`a` = 10 where `test`.`t1`.`a` < 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1     WHERE a < 10;
@@ -29,7 +30,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 10
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -60,7 +62,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`a` < 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a < 10;
@@ -70,7 +73,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 10
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -101,7 +105,8 @@
 Note	1003	delete  from `test`.`t1` using `test`.`t1` where `test`.`t1`.`a` = 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1          WHERE a = 1;
@@ -111,7 +116,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -146,7 +152,8 @@
 Note	1003	update `test`.`t1` join `test`.`t2` set `test`.`t1`.`a` = 10 where `test`.`t1`.`a` = 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1, t2               WHERE t1.a = 1;
@@ -157,7 +164,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`a` = 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -194,7 +202,8 @@
 Note	1003	/* select#1 */ update `test`.`t1` `t11` join (/* select#2 */ select `test`.`t2`.`b` AS `b` from `test`.`t2`) `t12` set `test`.`t11`.`a` = 10 where `test`.`t11`.`a` = 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT * FROM t2) t12                WHERE t11.a = 1;
@@ -205,7 +214,8 @@
 Note	1003	select `test`.`t11`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` `t11` join `test`.`t2` where `test`.`t11`.`a` = 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -240,7 +250,8 @@
 Note	1003	update `test`.`t1` semi join (`test`.`t2`) set `test`.`t1`.`a` = 10 where `test`.`t2`.`b` < 3
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1            WHERE 1 IN (SELECT 1 FROM t2 WHERE t2.b < 3);
@@ -251,7 +262,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` < 3
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -288,7 +300,8 @@
 Note	1003	update `test`.`t1` semi join (`test`.`t2`) set `test`.`t1`.`a` = 10 where `test`.`t2`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1            WHERE a IN (SELECT b FROM t2 WHERE t1.a < 3);
@@ -300,7 +313,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`b` = `test`.`t1`.`a` and `test`.`t1`.`a` < 3
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -342,7 +356,8 @@
 Note	1003	update `test`.`t1` semi join (`test`.`t3`) join `test`.`t2` set `test`.`t1`.`a` = 10 where `test`.`t3`.`b` < 3
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1, t2            WHERE a IN (SELECT b FROM t3 WHERE t3.b < 3);
@@ -355,7 +370,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) join `test`.`t2` where `test`.`t3`.`b` < 3
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	9
@@ -392,7 +408,8 @@
 Note	1003	/* select#1 */ update `test`.`t1` `t11` join (/* select#2 */ select `test`.`t2`.`b` AS `b` from `test`.`t2`) `t12` set `test`.`t11`.`a` = `test`.`t11`.`a` + 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT * FROM t2) t12;
@@ -403,7 +420,8 @@
 Note	1003	select `test`.`t11`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` `t11` join `test`.`t2`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -442,8 +460,8 @@
 Note	1003	/* select#1 */ update `test`.`t1` `t11` set `test`.`t11`.`a` = `test`.`t11`.`a` + 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
-Handler_read_rnd_next	1
+Handler_read_key	4
+Handler_read_rnd_next	3
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT 1 FROM DUAL) t12;
@@ -455,8 +473,8 @@
 Note	1003	/* select#1 */ select `test`.`t11`.`a` AS `a`,1 AS `1` from `test`.`t1` `t11`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
-Handler_read_rnd_next	1
+Handler_read_key	4
+Handler_read_rnd_next	3
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -494,7 +512,8 @@
 Note	1003	/* select#1 */ update `test`.`t1` `t11` join (/* select#2 */ select `test`.`t2`.`b` AS `b` from `test`.`t2`) `t12` set `test`.`t11`.`a` = 10 where `test`.`t11`.`a` > 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 t11, (SELECT * FROM t2) t12                WHERE t11.a > 1;
@@ -505,7 +524,8 @@
 Note	1003	select `test`.`t11`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t1` `t11` join `test`.`t2` where `test`.`t11`.`a` > 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -536,7 +556,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`a` > 1 limit 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a > 1 LIMIT 1;
@@ -546,7 +567,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 1 limit 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -577,7 +599,8 @@
 Note	1003	delete  from `test`.`t1` using dual where 0
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE 0;
@@ -587,7 +610,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -615,7 +639,8 @@
 Note	1003	delete  from `test`.`t1` using `test`.`t1` where 0
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1          WHERE 0;
@@ -625,7 +650,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -653,7 +679,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`a` = 3
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	5
+Handler_read_key	10
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 3;
@@ -663,7 +690,8 @@
 Note	1003	select 3 AS `a`,3 AS `b` from `test`.`t1` where 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	11
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	6
@@ -692,7 +720,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`a` < 3
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	5
+Handler_read_key	10
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a < 3;
@@ -702,7 +731,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` < 3
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	5
+Handler_read_key	10
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	6
@@ -729,7 +759,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`a` > 0 order by `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
@@ -739,8 +770,8 @@
 Note	1003	select NULL AS `a` from `test`.`t1` where 0 order by NULL
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
-Handler_read_rnd_next	1
+Handler_read_key	6
+Handler_read_rnd_next	3
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	3
@@ -766,7 +797,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`a` > 0 order by `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE t1.a > 0 ORDER BY t1.a;
@@ -776,7 +808,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 0 order by `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -807,7 +840,8 @@
 Note	1003	delete  from `test`.`t1` using dual where @a:=`test`.`t1`.`a` order by `test`.`t1`.`a` limit 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE (@a:= a) ORDER BY a LIMIT 1;
@@ -817,7 +851,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where @a:=`test`.`t1`.`a` order by `test`.`t1`.`a` limit 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -849,7 +884,8 @@
 Note	1003	delete  from `test`.`t1` using dual order by `test`.`t1`.`a`,`test`.`t1`.`b` limit 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	7
+Handler_read_key	14
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 ORDER BY a ASC, b ASC LIMIT 1;
@@ -859,7 +895,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` order by `test`.`t1`.`a`,`test`.`t1`.`b` limit 1
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	7
+Handler_read_key	14
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -904,7 +941,8 @@
 Note	1003	delete  from `test`.`t1`,`test`.`t2`,`test`.`t3` using `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t2`.`a2` = `test`.`t1`.`a1` and `test`.`t3`.`a3` = `test`.`t2`.`b2` and `test`.`t3`.`b3` = `test`.`t1`.`b1`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	13
+Handler_read_key	26
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT *        FROM t1,t2,t3 WHERE a1=a2 AND b2=a3 AND b1=b3;
@@ -916,7 +954,8 @@
 Note	1003	select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b2` AS `b2`,`test`.`t3`.`a3` AS `a3`,`test`.`t3`.`b3` AS `b3` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t2`.`a2` = `test`.`t1`.`a1` and `test`.`t3`.`a3` = `test`.`t2`.`b2` and `test`.`t3`.`b3` = `test`.`t1`.`b1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	13
+Handler_read_key	26
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	19
@@ -955,7 +994,8 @@
 Note	1003	update `test`.`t1` semi join (`test`.`t2`) set `test`.`t1`.`a` = 10 where `test`.`t2`.`a` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1     WHERE a IN (SELECT a FROM t2);
@@ -966,7 +1006,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`a` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -1002,7 +1043,8 @@
 Note	1003	/* select#1 */ delete  from `test`.`t1` using dual where <in_optimizer>(`test`.`t1`.`a1`,<exists>(/* select#2 */ select `test`.`t2`.`a2` from `test`.`t2` where `test`.`t2`.`a2` > 2 and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`a2`))
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
@@ -1013,7 +1055,8 @@
 Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t1`.`a1`,<exists>(/* select#2 */ select `test`.`t2`.`a2` from `test`.`t2` where `test`.`t2`.`a2` > 2 and <cache>(`test`.`t1`.`a1`) = `test`.`t2`.`a2`)))
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	9
@@ -1045,7 +1088,8 @@
 Note	1003	delete  from `test`.`t1` using (`test`.`t2`) where `test`.`t2`.`a2` > 2 and `test`.`t1`.`a1` = `test`.`t2`.`a2`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a1 IN (SELECT a2 FROM t2 WHERE a2 > 2);
@@ -1056,7 +1100,8 @@
 Note	1003	select `test`.`t1`.`a1` AS `a1` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`a2` > 2 and `test`.`t1`.`a1` = `test`.`t2`.`a2`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -1087,7 +1132,8 @@
 Note	1003	update `test`.`t1` set `test`.`t1`.`i` = 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1;
@@ -1097,7 +1143,8 @@
 Note	1003	select `test`.`t1`.`i` AS `i`,`test`.`t1`.`j` AS `j` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	3
@@ -1118,17 +1165,18 @@
 #
 EXPLAIN DELETE FROM t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	5	Deleting all rows
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	0	Deleting all rows
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED DELETE FROM t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	5	NULL	Deleting all rows
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	0	NULL	Deleting all rows
 Warnings:
 Note	1003	delete  from `test`.`t1` using dual
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1;
@@ -1138,7 +1186,8 @@
 Note	1003	select `test`.`t1`.`i` AS `i`,`test`.`t1`.`j` AS `j` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	3
@@ -1172,7 +1221,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -1182,7 +1232,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -1216,7 +1267,8 @@
 Note	1003	insert into `test`.`t2` select `test`.`t1`.`i` AS `i` from `test`.`t1`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1;
@@ -1226,7 +1278,8 @@
 Note	1003	select `test`.`t1`.`i` AS `i` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -1248,17 +1301,18 @@
 #
 EXPLAIN REPLACE INTO t2 SELECT * FROM t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	0	Const row not found
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED REPLACE INTO t2 SELECT * FROM t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	
+1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	0	0.00	Const row not found
 Warnings:
-Note	1003	replace into `test`.`t2` select `test`.`t1`.`i` AS `i` from `test`.`t1`
+Note	1003	replace into `test`.`t2` select NULL AS `i` from `test`.`t1`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
 Handler_read_key	4
+Handler_read_rnd_next	1
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1;
@@ -1268,7 +1322,8 @@
 Note	1003	select `test`.`t1`.`i` AS `i` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -1299,6 +1354,7 @@
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
 Handler_read_key	2
+Handler_read_rnd_next	1
 # Status of testing query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -1324,6 +1380,7 @@
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
 Handler_read_key	2
+Handler_read_rnd_next	1
 # Status of testing query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -1351,7 +1408,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`i` > 10 and `test`.`t1`.`i` <= 18 order by `test`.`t1`.`i` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
@@ -1361,7 +1419,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`i` AS `i` from `test`.`t1` where `test`.`t1`.`i` > 10 and `test`.`t1`.`i` <= 18 order by `test`.`t1`.`i` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	5
@@ -1399,7 +1458,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`i` > 10 and `test`.`t1`.`i` <= 18 order by `test`.`t1`.`i` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
@@ -1413,7 +1473,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`i` AS `i` from `test`.`t1` where `test`.`t1`.`i` > 10 and `test`.`t1`.`i` <= 18 order by `test`.`t1`.`i` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -1460,7 +1521,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`i` >= 10 and `test`.`t1`.`i` < 18 order by `test`.`t1`.`i` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE i >= 10 AND i < 18 ORDER BY i LIMIT 5;
@@ -1474,7 +1536,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`i` AS `i` from `test`.`t1` where `test`.`t1`.`i` >= 10 and `test`.`t1`.`i` < 18 order by `test`.`t1`.`i` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -1515,7 +1578,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -1525,7 +1589,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -1563,7 +1628,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -1573,7 +1639,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -1613,7 +1680,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -1624,7 +1692,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	8
@@ -1669,7 +1738,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -1680,7 +1750,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	8
@@ -1723,7 +1794,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`key1` < 13 or `test`.`t2`.`key2` < 14 order by `test`.`t2`.`key1`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE key1 < 13 or key2 < 14 ORDER BY key1;
@@ -1733,7 +1805,8 @@
 Note	1003	select `test`.`t2`.`i` AS `i`,`test`.`t2`.`key1` AS `key1`,`test`.`t2`.`key2` AS `key2` from `test`.`t2` where `test`.`t2`.`key1` < 13 or `test`.`t2`.`key2` < 14 order by `test`.`t2`.`key1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	8
@@ -1774,7 +1847,8 @@
 Note	1003	delete  from `test`.`t2` using dual where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` desc limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
@@ -1784,7 +1858,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` desc limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	5
@@ -1819,7 +1894,8 @@
 Note	1003	delete  from `test`.`t2` using dual order by `test`.`t2`.`a`,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 ORDER BY a, b DESC LIMIT 5;
@@ -1829,7 +1905,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a`,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	6
@@ -1871,7 +1948,8 @@
 Note	1003	delete  from `test`.`t2` using dual order by `test`.`t2`.`a` desc,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2 ORDER BY a DESC, b DESC LIMIT 5;
@@ -1881,7 +1959,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a` desc,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	6
@@ -1918,7 +1997,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`a` = 10 where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM  t2    WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
@@ -1928,7 +2008,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	5
@@ -1969,7 +2050,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`a` = 10 where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     WHERE i > 10 AND i <= 18 ORDER BY i LIMIT 5;
@@ -1983,7 +2065,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -2025,7 +2108,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`d` = 10 where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -2035,7 +2119,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -2074,7 +2159,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`d` = 10 where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -2084,7 +2170,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -2125,7 +2212,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`d` = 10 where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -2136,7 +2224,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	8
@@ -2181,7 +2270,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`d` = 10 where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     WHERE b = 10 ORDER BY a, c LIMIT 5;
@@ -2192,7 +2282,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c`,`test`.`t2`.`d` AS `d` from `test`.`t2` where `test`.`t2`.`b` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`c` limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	8
+Handler_read_key	16
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	8
@@ -2235,7 +2326,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`i` = 123 where `test`.`t2`.`key1` < 13 or `test`.`t2`.`key2` < 14 order by `test`.`t2`.`key1`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2      WHERE key1 < 13 or key2 < 14 ORDER BY key1;
@@ -2245,7 +2337,8 @@
 Note	1003	select `test`.`t2`.`i` AS `i`,`test`.`t2`.`key1` AS `key1`,`test`.`t2`.`key2` AS `key2` from `test`.`t2` where `test`.`t2`.`key1` < 13 or `test`.`t2`.`key2` < 14 order by `test`.`t2`.`key1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	8
@@ -2286,7 +2379,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`a` = 10 where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` desc limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     WHERE i > 10 AND i <= 18 ORDER BY i DESC LIMIT 5;
@@ -2296,7 +2390,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`i` AS `i` from `test`.`t2` where `test`.`t2`.`i` > 10 and `test`.`t2`.`i` <= 18 order by `test`.`t2`.`i` desc limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	5
@@ -2332,7 +2427,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`c` = 10 order by `test`.`t2`.`a`,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     ORDER BY a, b DESC LIMIT 5;
@@ -2342,7 +2438,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a`,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	6
@@ -2385,7 +2482,8 @@
 Note	1003	update `test`.`t2` set `test`.`t2`.`c` = 10 order by `test`.`t2`.`a` desc,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t2     ORDER BY a DESC, b DESC LIMIT 5;
@@ -2395,7 +2493,8 @@
 Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` order by `test`.`t2`.`a` desc,`test`.`t2`.`b` desc limit 5
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	6
@@ -2435,7 +2534,8 @@
 Note	1003	update `test`.`t1` set `test`.`t1`.`c2` = 0 where `test`.`t1`.`c1_idx` = 'y' order by `test`.`t1`.`pk` desc limit 2
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1     WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
@@ -2445,7 +2545,8 @@
 Note	1003	select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1_idx` AS `c1_idx`,`test`.`t1`.`c2` AS `c2` from `test`.`t1` where `test`.`t1`.`c1_idx` = 'y' order by `test`.`t1`.`pk` desc limit 2
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -2479,7 +2580,8 @@
 Note	1003	delete  from `test`.`t1` using dual where `test`.`t1`.`c1_idx` = 'y' order by `test`.`t1`.`pk` desc limit 2
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE c1_idx = 'y' ORDER BY pk DESC LIMIT 2;
@@ -2489,7 +2591,8 @@
 Note	1003	select `test`.`t1`.`pk` AS `pk`,`test`.`t1`.`c1_idx` AS `c1_idx`,`test`.`t1`.`c2` AS `c2` from `test`.`t1` where `test`.`t1`.`c1_idx` = 'y' order by `test`.`t1`.`pk` desc limit 2
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -2526,7 +2629,8 @@
 Note	1003	update `test`.`t1` set `test`.`t1`.`a` = `test`.`t1`.`a` + 10 where `test`.`t1`.`a` > 34
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1     WHERE a > 34;
@@ -2536,7 +2640,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` > 34
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -2571,8 +2676,8 @@
 Note	1003	update `test`.`t1` set `test`.`t2`.`c2` = 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	7
-Handler_read_rnd_next	1
+Handler_read_key	14
+Handler_read_rnd_next	3
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 LEFT JOIN t2 ON t1.c1 = t2.c1;
@@ -2583,8 +2688,8 @@
 Note	1003	select `test`.`t1`.`c1` AS `c1`,`test`.`t1`.`c2` AS `c2`,`test`.`t1`.`c3` AS `c3`,NULL AS `c1`,NULL AS `c2` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	7
-Handler_read_rnd_next	1
+Handler_read_key	14
+Handler_read_rnd_next	3
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -2612,8 +2717,8 @@
 Note	1003	update `test`.`t1` set `test`.`t2`.`c2` = 10 where `test`.`t1`.`c3` = 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	7
-Handler_read_rnd_next	1
+Handler_read_key	14
+Handler_read_rnd_next	3
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1 LEFT JOIN t2 ON t1.c1 = t2.c1                WHERE t1.c3 = 10;
@@ -2624,8 +2729,8 @@
 Note	1003	select `test`.`t1`.`c1` AS `c1`,`test`.`t1`.`c2` AS `c2`,`test`.`t1`.`c3` AS `c3`,NULL AS `c1`,NULL AS `c2` from `test`.`t1` where `test`.`t1`.`c3` = 10
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	7
-Handler_read_rnd_next	1
+Handler_read_key	14
+Handler_read_rnd_next	3
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -2661,7 +2766,8 @@
 Note	1003	/* select#1 */ update `test`.`t1` set `test`.`t1`.`f2` = (/* select#2 */ select max(`test`.`t2`.`f4`) from `test`.`t2` where `test`.`t2`.`f3` = `test`.`t1`.`f1`)
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	7
+Handler_read_key	14
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT              (SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1) FROM t1;
@@ -2673,7 +2779,8 @@
 Note	1003	/* select#1 */ select <expr_cache><`test`.`t1`.`f1`>((/* select#2 */ select max(`test`.`t2`.`f4`) from `test`.`t2` where `test`.`t2`.`f3` = `test`.`t1`.`f1`)) AS `(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1)` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	7
+Handler_read_key	14
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	11
@@ -2729,10 +2836,11 @@
 1	SIMPLE	t11	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 1	SIMPLE	t12	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	update `test`.`t1` `t11` join `test`.`t1` `t12` set `test`.`t11`.`a` = 1 where `test`.`t11`.`a` > 0
+Note	1003	update `test`.`t1` `t11` join `test`.`t1` `t12` set `t11`.`a` = 1 where `t11`.`a` > 0
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM v1           WHERE a > 0;
@@ -2740,10 +2848,11 @@
 1	SIMPLE	t11	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 1	SIMPLE	t12	ALL	NULL	NULL	NULL	NULL	2	100.00	Using join buffer (flat, BNL join)
 Warnings:
-Note	1003	select `test`.`t11`.`a` AS `a`,`test`.`t12`.`a` AS `b` from `test`.`t1` `t11` join `test`.`t1` `t12` where `test`.`t11`.`a` > 0
+Note	1003	select `t11`.`a` AS `a`,`t12`.`a` AS `b` from `test`.`t1` `t11` join `test`.`t1` `t12` where `t11`.`a` > 0
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -2772,10 +2881,11 @@
 1	SIMPLE	t11	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 1	SIMPLE	t12	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	update `test`.`t1` join `test`.`t1` `t11` join `test`.`t1` `t12` set `test`.`t11`.`a` = 1 where `test`.`t11`.`a` = `test`.`t1`.`a`
+Note	1003	update `test`.`t1` join `test`.`t1` `t11` join `test`.`t1` `t12` set `t11`.`a` = 1 where `t11`.`a` = `t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1, v1              WHERE t1.a = v1.a;
@@ -2784,10 +2894,11 @@
 1	SIMPLE	t11	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
 1	SIMPLE	t12	ALL	NULL	NULL	NULL	NULL	2	100.00	Using join buffer (incremental, BNL join)
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t11`.`a` AS `a`,`test`.`t12`.`a` AS `b` from `test`.`t1` join `test`.`t1` `t11` join `test`.`t1` `t12` where `test`.`t11`.`a` = `test`.`t1`.`a`
+Note	1003	select `t1`.`a` AS `a`,`t11`.`a` AS `a`,`test`.`t12`.`a` AS `b` from `test`.`t1` join `test`.`t1` `t11` join `test`.`t1` `t12` where `t11`.`a` = `t1`.`a`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
+Handler_read_key	4
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -2822,7 +2933,8 @@
 Note	1003	/* select#1 */ delete  from `test`.`t1` using dual where `v1`.`a` < 4
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM v1 WHERE a < 4;
@@ -2832,7 +2944,8 @@
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 4
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_first	1
@@ -2871,7 +2984,8 @@
 Note	1003	delete  from `test`.`t1` using `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`x`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT *  FROM t2, v1 WHERE t2.x = v1.a;
@@ -2882,7 +2996,8 @@
 Note	1003	select `test`.`t2`.`x` AS `x`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` + 1 AS `c` from `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`x`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	10
@@ -2920,7 +3035,8 @@
 Note	1003	delete  from `test`.`t1` using `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`x`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT *  FROM t2, v1 WHERE t2.x = v1.a;
@@ -2931,7 +3047,8 @@
 Note	1003	select `test`.`t2`.`x` AS `x`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` + 1 AS `c` from `test`.`t2` join `test`.`t1` where `test`.`t1`.`a` = `test`.`t2`.`x`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	6
+Handler_read_key	12
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	10
@@ -2953,18 +3070,15 @@
 # select: SELECT NULL
 #
 EXPLAIN INSERT INTO v1 VALUES (10);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1471 The target table v1 of the INSERT is not insertable-into
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED INSERT INTO v1 VALUES (10);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Note	1003	insert into `test`.`t1`(x) values (10)
+ReplayTest: Direct EXPLAIN failed on replay server: 1471 The target table v1 of the INSERT is not insertable-into
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
 Handler_read_key	2
+Handler_read_rnd_next	1
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT NULL;
@@ -2974,6 +3088,7 @@
 Note	1003	select NULL AS `NULL`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
+Handler_read_rnd_next	1
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 # Status of testing query execution:
@@ -3004,8 +3119,8 @@
 Note	1003	insert into `test`.`t2`(x) /* select#1 */ select NULL AS `a` from `test`.`t1`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
-Handler_read_rnd_next	1
+Handler_read_key	8
+Handler_read_rnd_next	3
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1;
@@ -3015,8 +3130,8 @@
 Note	1003	select NULL AS `a` from `test`.`t1`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	2
-Handler_read_rnd_next	1
+Handler_read_key	4
+Handler_read_rnd_next	3
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	2
@@ -3059,7 +3174,8 @@
 Note	1003	/* select#1 */ update (/* select#3 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x` join `test`.`t1` set `test`.`t1`.`a` = 10 where `x`.`b` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1            WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
@@ -3071,7 +3187,8 @@
 Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a` from (/* select#3 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x` join `test`.`t1` where `x`.`b` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -3110,7 +3227,8 @@
 Note	1003	/* select#1 */ update (/* select#3 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x` join `test`.`t1` join `test`.`t2` set `test`.`t1`.`a` = 10 where `x`.`b` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1, t2            WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
@@ -3123,7 +3241,8 @@
 Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from (/* select#3 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x` join `test`.`t1` join `test`.`t2` where `x`.`b` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -3163,7 +3282,8 @@
 Note	1003	/* select#1 */ update (/* select#4 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x` join `test`.`t1` join (/* select#2 */ select `test`.`t2`.`b` AS `b` from `test`.`t2`) `y` set `test`.`t1`.`a` = 10 where `x`.`b` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT * FROM t1, (SELECT * FROM t2) y            WHERE a IN (SELECT * FROM (SELECT b FROM t2 ORDER BY b LIMIT 2,2) x);
@@ -3176,7 +3296,8 @@
 Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t2`.`b` AS `b` from (/* select#4 */ select `test`.`t2`.`b` AS `b` from `test`.`t2` order by `test`.`t2`.`b` limit 2,2) `x` join `test`.`t1` join `test`.`t2` where `x`.`b` = `test`.`t1`.`a`
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	4
+Handler_read_key	8
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	7
@@ -3239,7 +3360,8 @@
 Note	1003	update `test`.`t1` set `test`.`t1`.`a` = `test`.`t1`.`a` + 1 where `test`.`t1`.`a` > 10
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT a t1 FROM t1 WHERE a>10;
@@ -3249,7 +3371,8 @@
 Note	1003	select `test`.`t1`.`a` AS `t1` from `test`.`t1` where `test`.`t1`.`a` > 10
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -3274,7 +3397,8 @@
 Note	1003	update `test`.`t1` set `test`.`t1`.`a` = `test`.`t1`.`a` + 1 where `test`.`t1`.`a` > 10 order by `test`.`t1`.`a` + 20
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED SELECT a t1 FROM t1 WHERE a>10 ORDER BY a+20;
@@ -3284,7 +3408,8 @@
 Note	1003	select `test`.`t1`.`a` AS `t1` from `test`.`t1` where `test`.`t1`.`a` > 10 order by `test`.`t1`.`a` + 20
 # Status of EXPLAIN EXTENDED "equivalent" SELECT query execution
 Variable_name	Value
-Handler_read_key	3
+Handler_read_key	6
+Handler_read_rnd_next	2
 # Status of "equivalent" SELECT query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -3302,18 +3427,15 @@
 # select: 
 #
 EXPLAIN INSERT INTO t1 VALUES (3,10), (7,11), (3,11) ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 FLUSH STATUS;
 FLUSH TABLES;
 EXPLAIN EXTENDED INSERT INTO t1 VALUES (3,10), (7,11), (3,11) ON DUPLICATE KEY UPDATE id=LAST_INSERT_ID(id);;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Note	1003	insert into `test`.`t1` values (3,10),(7,11),(3,11) on duplicate key update `test`.`t1`.`id` = last_insert_id(`test`.`t1`.`id`)
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
 Handler_read_key	4
+Handler_read_rnd_next	1
 # Status of testing query execution:
 Variable_name	Value
 Handler_read_key	4
@@ -3341,7 +3463,8 @@
 Note	1003	insert into `test`.`t1` select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` on duplicate key update `test`.`t1`.`id` = last_insert_id(`test`.`t1`.`id`)
 # Status of EXPLAIN EXTENDED query
 Variable_name	Value
-Handler_read_key	7
+Handler_read_key	14
+Handler_read_rnd_next	2
 # Status of testing query execution:
 Variable_name	Value
 Handler_read_key	7

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.myisam_explain_non_select_all/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.myisam_icp                          [ pass ]    374
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.myisam_mrr '64bit'                  [ pass ]    315
main.natural_sort_key                    [ pass ]    529
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.null_aware_cardinality              [ pass ]    127
main.opt_context_load_stats_basic        [ pass ]     80
main.opt_context_store_stats             [ pass ]     75
ReplayTest: Loading context 
main.opt_hint_timeout                    [ pass ]    997
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: EXPLAIN EXTENDED INSERT /*+ test */ INTO t1 VALUES (10, 10)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints                           [ fail ]
        Test ended at 2026-04-26 19:57:10

CURRENT_TEST: main.opt_hints
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/opt_hints.result	2026-04-24 13:55:48.345039340 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/opt_hints.reject	2026-04-26 19:57:10.308230981 +0300
@@ -156,34 +156,38 @@
 EXPLAIN EXTENDED SELECT /*+ NO_RANGE_OPTIMIZATION(таблица PRIMARY) */ f1
 FROM таблица WHERE f1 > 30 AND f1 < 33;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	таблица	range	PRIMARY,f2_индекс	f2_индекс	4	NULL	2	100.00	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `PRIMARY`) */ `test`.`таблица`.`f1` AS `f1` from `test`.`таблица` where `test`.`таблица`.`f1` > 30 and `test`.`таблица`.`f1` < 33
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of name element at offset 65.
+Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `PRIMARY`) */ NULL AS `f1` from `test`.`таблица` where 0
 # Turn off range access for PRIMARY & f2_индекс keys
 # Should use index access
 EXPLAIN EXTENDED SELECT /*+ NO_RANGE_OPTIMIZATION(таблица PRIMARY, f2_индекс) */ f1
 FROM таблица WHERE f1 > 30 AND f1 < 33;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	таблица	index	PRIMARY,f2_индекс	PRIMARY	4	NULL	56	4.11	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `PRIMARY`) NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `f2_индекс`) */ `test`.`таблица`.`f1` AS `f1` from `test`.`таблица` where `test`.`таблица`.`f1` > 30 and `test`.`таблица`.`f1` < 33
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of name element at offset 65.
+Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `PRIMARY`) NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `f2_индекс`) */ NULL AS `f1` from `test`.`таблица` where 0
 # Turn off range access for all keys
 # Should use index access
 EXPLAIN EXTENDED SELECT /*+ NO_RANGE_OPTIMIZATION(таблица) */ f1
 FROM таблица WHERE f1 > 30 AND f1 < 33;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	таблица	index	PRIMARY,f2_индекс	PRIMARY	4	NULL	56	4.11	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1`) */ `test`.`таблица`.`f1` AS `f1` from `test`.`таблица` where `test`.`таблица`.`f1` > 30 and `test`.`таблица`.`f1` < 33
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of name element at offset 65.
+Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1`) */ NULL AS `f1` from `test`.`таблица` where 0
 # Turn off range access for PRIMARY & f2_индекс keys
 # Should use index access
 EXPLAIN EXTENDED
 SELECT /*+ NO_RANGE_OPTIMIZATION(таблица PRIMARY) NO_RANGE_OPTIMIZATION(таблица f2_индекс) */ f1
 FROM таблица WHERE f1 > 30 AND f1 < 33;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	таблица	index	PRIMARY,f2_индекс	PRIMARY	4	NULL	56	4.11	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `PRIMARY`) NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `f2_индекс`) */ `test`.`таблица`.`f1` AS `f1` from `test`.`таблица` where `test`.`таблица`.`f1` > 30 and `test`.`таблица`.`f1` < 33
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of name element at offset 65.
+Note	1003	select /*+ NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `PRIMARY`) NO_RANGE_OPTIMIZATION(`таблица`@`select#1` `f2_индекс`) */ NULL AS `f1` from `test`.`таблица` where 0
 DROP TABLE таблица;
 # NO_ICP hint testing
 set optimizer_switch='index_condition_pushdown=on';
@@ -511,37 +515,33 @@
 EXPLAIN EXTENDED REPLACE INTO t3(f1, f2, f3)
 (SELECT t4.x, t5.y, 'filler' FROM t4, t4 t5 WHERE t4.y = 8 AND t5.x BETWEEN 7 AND t4.y+0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t4	ref	y_idx	y_idx	5	const	1	100.00	
-1	SIMPLE	t5	range	x_idx	x_idx	5	NULL	2	100.00	Using index condition; Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	(replace into `test`.`t3`(f1,f2,f3) select `test`.`t4`.`x` AS `x`,`test`.`t5`.`y` AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where `test`.`t4`.`y` = 8 and `test`.`t5`.`x` between 7 and <cache>(8 + 0))
+Note	1003	(replace into `test`.`t3`(f1,f2,f3) select NULL AS `x`,NULL AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where 0)
 # Turn off ICP. ICP should not be used.
 EXPLAIN EXTENDED REPLACE INTO t3(f1, f2, f3)
 (SELECT /*+ NO_ICP(t5) */t4.x, t5.y, 'filler' FROM t4, t4 t5
 WHERE t4.y = 8 AND t5.x BETWEEN 7 AND t4.y+0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t4	ref	y_idx	y_idx	5	const	1	100.00	
-1	SIMPLE	t5	range	x_idx	x_idx	5	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	(replace into `test`.`t3`(f1,f2,f3) select /*+ NO_ICP(`t5`@`select#1`) */ `test`.`t4`.`x` AS `x`,`test`.`t5`.`y` AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where `test`.`t4`.`y` = 8 and `test`.`t5`.`x` between 7 and <cache>(8 + 0))
+Note	1003	(replace into `test`.`t3`(f1,f2,f3) select /*+ NO_ICP(`t5`@`select#1`) */ NULL AS `x`,NULL AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where 0)
 # Turn off ICP for a particular table
 EXPLAIN EXTENDED REPLACE INTO t3(f1, f2, f3)
 (SELECT /*+ QB_NAME(qb1) NO_ICP(t5@QB1)*/ t4.x, t5.y, 'filler' FROM t4, t4 t5
 WHERE t4.y = 8 AND t5.x BETWEEN 7 AND t4.y+0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t4	ref	y_idx	y_idx	5	const	1	100.00	
-1	SIMPLE	t5	range	x_idx	x_idx	5	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	(replace into `test`.`t3`(f1,f2,f3) select /*+ QB_NAME(`qb1`) NO_ICP(`t5`@`qb1`) */ `test`.`t4`.`x` AS `x`,`test`.`t5`.`y` AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where `test`.`t4`.`y` = 8 and `test`.`t5`.`x` between 7 and <cache>(8 + 0))
+Note	1003	(replace into `test`.`t3`(f1,f2,f3) select /*+ QB_NAME(`qb1`) NO_ICP(`t5`@`qb1`) */ NULL AS `x`,NULL AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where 0)
 # Turn off ICP for a particular table and a key
 EXPLAIN EXTENDED REPLACE INTO t3(f1, f2, f3)
 (SELECT /*+ NO_ICP(t5 x_idx) */ t4.x, t5.y, 'filler' FROM t4, t4 t5
 WHERE t4.y = 8 AND t5.x BETWEEN 7 AND t4.y+0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t4	ref	y_idx	y_idx	5	const	1	100.00	
-1	SIMPLE	t5	range	x_idx	x_idx	5	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	(replace into `test`.`t3`(f1,f2,f3) select /*+ NO_ICP(`t5`@`select#1` `x_idx`) */ `test`.`t4`.`x` AS `x`,`test`.`t5`.`y` AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where `test`.`t4`.`y` = 8 and `test`.`t5`.`x` between 7 and <cache>(8 + 0))
+Note	1003	(replace into `test`.`t3`(f1,f2,f3) select /*+ NO_ICP(`t5`@`select#1` `x_idx`) */ NULL AS `x`,NULL AS `y`,'filler' AS `filler` from `test`.`t4` join `test`.`t4` `t5` where 0)
 # Misc tests
 # Should issue warning
 EXPLAIN EXTENDED SELECT /*+ QB_NAME(qb1) QB_NAME(qb1 ) */ * FROM t2;
@@ -1116,11 +1116,7 @@
 Warning	1064	Optimizer hint syntax error near 'test */ 1' at line 1
 Note	1003	select 1 AS `1`
 EXPLAIN EXTENDED INSERT /*+ test */ INTO t1 VALUES (10, 10);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	100.00	NULL
-Warnings:
-Warning	1064	Optimizer hint syntax error near 'test */ INTO t1 VALUES (10, 10)' at line 1
-Note	1003	insert into `test`.`t1` values (10,10)
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 EXPLAIN EXTENDED UPDATE /*+ test */ t1 SET i = 10 WHERE j = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.opt_hints/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_derived_condition_pushdown [ pass ]    258
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_merge                     [ pass ]    116
main.opt_trace_selectivity               [ pass ]    363
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_tvc                             [ fail ]
        Test ended at 2026-04-26 19:57:12

CURRENT_TEST: main.opt_tvc
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/opt_tvc.result	2026-04-24 13:53:12.161384757 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/opt_tvc.reject	2026-04-26 19:57:12.192276597 +0300
@@ -46,11 +46,9 @@
 2	5
 explain extended select * from t1 where a in (1,2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived3>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1),(2)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2)
 explain extended select * from t1
 where a in
 (
@@ -84,11 +82,9 @@
 7	8
 explain extended select * from t1 where a in (1,2,2,2,3,4,5,6,7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived3>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1),(2),(2),(2),(3),(4),(5),(6),(7)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2,2,2,3,4,5,6,7)
 explain extended select * from t1
 where a in
 (
@@ -126,13 +122,9 @@
 where a in (1,2) and
 b in (1,5);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived3>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-1	PRIMARY	<derived5>	eq_ref	distinct_key	distinct_key	4	test.t1.b	1	100.00	
-5	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1),(5)) `tvc_1` join (values (1),(2)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a` and `tvc_1`.`_col_1` = `test`.`t1`.`b`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2) and `test`.`t1`.`b` in (1,5)
 explain extended select * from t1
 where a in
 (
@@ -181,12 +173,9 @@
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-2	MATERIALIZED	<derived4>	eq_ref	distinct_key	distinct_key	4	test.t2.b	1	100.00	
-4	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	6	16.67	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (3),(4)) `tvc_0` join `test`.`t2`) where `tvc_0`.`_col_1` = `test`.`t2`.`b`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`a` = `test`.`t1`.`a` and `test`.`t2`.`b` in (3,4)
 explain extended select * from t1
 where a in
 (
@@ -238,11 +227,9 @@
 where a in (1,2)
 ) as dr_table;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived4>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-4	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1),(2)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2)
 explain extended select * from
 (
 select *
@@ -295,11 +282,9 @@
 )
 select * from tvc_0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived4>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-4	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	with tvc_0 as (/* select#2 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (dual) join `test`.`t1` where `test`.`t1`.`a` in (1,2))/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1),(2)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a`
+Note	1003	with tvc_0 as (select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2))select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2)
 explain extended select * from
 (
 select *
@@ -344,11 +329,9 @@
 2	5
 explain extended select * from v1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived4>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-4	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1),(2)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` in (1,2)
 explain extended select * from v2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
@@ -407,12 +390,9 @@
 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	
-2	MATERIALIZED	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-2	MATERIALIZED	<derived5>	eq_ref	distinct_key	distinct_key	4	test.t1.a	1	100.00	
-5	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	16.67	Using where; FirstMatch(t1); Using join buffer (flat, BNL join)
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join ((values (1),(2)) `tvc_0` join `test`.`t1`) where `test`.`t1`.`a` = 1 and `tvc_0`.`_col_1` = `test`.`t1`.`a`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t1`) where `test`.`t1`.`a` = 1 and `test`.`t1`.`a` in (1,2)
 explain extended select * from t1
 where a in
 (
@@ -472,10 +452,8 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	6	100.00	
 2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where; Using temporary; Using filesort
-2	DERIVED	<derived4>	eq_ref	distinct_key	distinct_key	4	test.t1.b	1	100.00	
-4	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	/* select#1 */ select `dr_table`.`max(a)` AS `max(a)`,`dr_table`.`b` AS `b` from (/* select#2 */ select max(`test`.`t1`.`a`) AS `max(a)`,`test`.`t1`.`b` AS `b` from (values (3),(5)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`b` group by `test`.`t1`.`b`) `dr_table`
+Note	1003	/* select#1 */ select `dr_table`.`max(a)` AS `max(a)`,`dr_table`.`b` AS `b` from (/* select#2 */ select max(`test`.`t1`.`a`) AS `max(a)`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` in (3,5) group by `test`.`t1`.`b`) `dr_table`
 explain extended select * from
 (
 select max(a),b
@@ -530,11 +508,10 @@
 4	yq
 explain extended select * from t3 where a in (1,4);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived3>	ALL	distinct_key	NULL	NULL	NULL	2	100.00	
-1	PRIMARY	t3	ref	idx	idx	5	tvc_0._col_1	3	100.00	
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t3	range	idx	idx	5	NULL	2	100.00	Using index condition
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from (values (1),(4)) `tvc_0` join `test`.`t3` where `test`.`t3`.`a` = `tvc_0`.`_col_1`
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t3.idx doesn't exist in list of range contexts
+Note	1003	select `test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t3` where `test`.`t3`.`a` in (1,4)
 # use vectors in IN predicate
 set @@in_predicate_conversion_threshold= 4;
 select * from t1 where (a,b) in ((1,2),(3,4));
@@ -542,11 +519,9 @@
 1	2
 explain extended select * from t1 where (a,b) in ((1,2),(3,4));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived3>	eq_ref	distinct_key	distinct_key	8	test.t1.a,test.t1.b	1	100.00	
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from (values (1,2),(3,4)) `tvc_0` join `test`.`t1` where `tvc_0`.`_col_1` = `test`.`t1`.`a` and `tvc_0`.`_col_2` = `test`.`t1`.`b`
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a`,`test`.`t1`.`b`) in (<cache>((1,2)),<cache>((3,4)))
 set @@in_predicate_conversion_threshold= 2;
 # transformation works for the one IN predicate and doesn't work for the other
 set @@in_predicate_conversion_threshold= 5;
@@ -560,11 +535,9 @@
 where (a,b) in ((1,2),(8,9)) and
 (a,c) in ((1,3),(8,0),(5,1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-1	PRIMARY	<derived3>	eq_ref	distinct_key	distinct_key	8	test.t2.a,test.t2.c	1	100.00	
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from (values (1,3),(8,0),(5,1)) `tvc_0` join `test`.`t2` where `tvc_0`.`_col_1` = `test`.`t2`.`a` and `tvc_0`.`_col_2` = `test`.`t2`.`c` and (`test`.`t2`.`a`,`test`.`t2`.`b`) in (<cache>((1,2)),<cache>((8,9)))
+Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where (`test`.`t2`.`a`,`test`.`t2`.`b`) in (<cache>((1,2)),<cache>((8,9))) and (`test`.`t2`.`a`,`test`.`t2`.`c`) in (<cache>((1,3)),<cache>((8,0)),<cache>((5,1)))
 set @@in_predicate_conversion_threshold= 2;
 #
 # mdev-14281: conversion of NOT IN predicate into subquery predicate
@@ -588,11 +561,9 @@
 explain extended select * from t1
 where (a,b) not in ((1,2),(8,9), (5,1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-2	DEPENDENT SUBQUERY	<derived3>	unique_subquery	distinct_key	distinct_key	8	func,func	1	100.00	Using where; Full scan on NULL key
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where !<expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`>(<in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`b`),<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`a`) in <temporary table> on distinct_key where trigcond(<cache>(`test`.`t1`.`a`) = `tvc_0`.`_col_1`) and trigcond(<cache>(`test`.`t1`.`b`) = `tvc_0`.`_col_2`)))))
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a`,`test`.`t1`.`b`) not in (<cache>((1,2)),<cache>((8,9)),<cache>((5,1)))
 explain extended select * from t1
 where (a,b) not in (select * from (values (1,2),(8,9), (5,1)) as tvc_0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
@@ -610,11 +581,9 @@
 explain extended select * from t1
 where b < 7 and (a,b) not in ((1,2),(8,9), (5,1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-2	DEPENDENT SUBQUERY	<derived3>	unique_subquery	distinct_key	distinct_key	8	func,func	1	100.00	Using where; Full scan on NULL key
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` < 7 and !<expr_cache><`test`.`t1`.`a`,`test`.`t1`.`b`>(<in_optimizer>((`test`.`t1`.`a`,`test`.`t1`.`b`),<exists>(<primary_index_lookup>(<cache>(`test`.`t1`.`a`) in <temporary table> on distinct_key where trigcond(<cache>(`test`.`t1`.`a`) = `tvc_0`.`_col_1`) and trigcond(<cache>(`test`.`t1`.`b`) = `tvc_0`.`_col_2`)))))
+Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` < 7 and (`test`.`t1`.`a`,`test`.`t1`.`b`) not in (<cache>((1,2)),<cache>((8,9)),<cache>((5,1)))
 select * from t2
 where (a,c) not in ((1,2),(8,9), (5,1));
 a	b	c
@@ -626,11 +595,9 @@
 explain extended select * from t2
 where (a,c) not in ((1,2),(8,9), (5,1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-2	DEPENDENT SUBQUERY	<derived3>	unique_subquery	distinct_key	distinct_key	8	func,func	1	100.00	Using where; Full scan on NULL key
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<expr_cache><`test`.`t2`.`a`,`test`.`t2`.`c`>(<in_optimizer>((`test`.`t2`.`a`,`test`.`t2`.`c`),<exists>(<primary_index_lookup>(<cache>(`test`.`t2`.`a`) in <temporary table> on distinct_key where trigcond(<cache>(`test`.`t2`.`a`) = `tvc_0`.`_col_1`) and trigcond(<cache>(`test`.`t2`.`c`) = `tvc_0`.`_col_2`)))))
+Note	1003	select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where (`test`.`t2`.`a`,`test`.`t2`.`c`) not in (<cache>((1,2)),<cache>((8,9)),<cache>((5,1)))
 drop table t1, t2, t3;
 set @@in_predicate_conversion_threshold= default;
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.opt_tvc/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.order_by_limit_join                 [ fail ]
        Test ended at 2026-04-26 19:57:13

CURRENT_TEST: main.order_by_limit_join
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/order_by_limit_join.result	2026-04-24 13:53:12.161384757 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/order_by_limit_join.reject	2026-04-26 19:57:12.840292283 +0300
@@ -70,54 +70,7 @@
 set @trace=(select trace from information_schema.optimizer_trace);
 select json_detailed(json_extract(@trace, '$**.join_limit_shortcut_choice')) as JS;
 JS
-[
-    {
-        "limit_fraction": 0.001,
-        "test_if_skip_sort_order_early": 
-        [
-            {
-                "reconsidering_access_paths_for_index_ordering": 
-                {
-                    "clause": "ORDER BY",
-                    "table": "t1",
-                    "rows_estimation": 10000,
-                    "filesort_cost": "REPLACED",
-                    "read_cost": "REPLACED",
-                    "filesort_type": "priority_queue with row lookup",
-                    "fanout": 1,
-                    "possible_keys": 
-                    [
-                        {
-                            "index": "a",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "b",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "col1",
-                            "can_resolve_order": true,
-                            "direction": 1,
-                            "rows_to_examine": 10,
-                            "range_scan": false,
-                            "scan_cost": "REPLACED",
-                            "chosen": true
-                        }
-                    ]
-                }
-            }
-        ],
-        "can_skip_filesort": true,
-        "full_join_cost": "REPLACED",
-        "risk_ratio": 10,
-        "shortcut_join_cost": "REPLACED",
-        "shortcut_cost_with_risk": 0.495218616,
-        "use_shortcut_cost": true
-    }
-]
+NULL
 #
 # Query 2 - same as above but without a suitable index.
 #
@@ -157,19 +110,7 @@
 set @trace=(select trace from information_schema.optimizer_trace);
 select json_detailed(json_extract(@trace, '$**.join_limit_shortcut_choice')) as JS;
 JS
-[
-    {
-        "limit_fraction": 0.001,
-        "test_if_skip_sort_order_early": 
-        [],
-        "can_skip_filesort": false,
-        "full_join_cost": "REPLACED",
-        "risk_ratio": 10,
-        "shortcut_join_cost": "REPLACED",
-        "shortcut_cost_with_risk": 16.2273863,
-        "use_shortcut_cost": true
-    }
-]
+NULL
 #
 # Query 3: Counter example with large limit
 #
@@ -209,55 +150,7 @@
 set @trace=(select trace from information_schema.optimizer_trace);
 select json_detailed(json_extract(@trace, '$**.join_limit_shortcut_choice')) as JS;
 JS
-[
-    {
-        "limit_fraction": 0.5,
-        "test_if_skip_sort_order_early": 
-        [
-            {
-                "reconsidering_access_paths_for_index_ordering": 
-                {
-                    "clause": "ORDER BY",
-                    "table": "t1",
-                    "rows_estimation": 10000,
-                    "filesort_cost": "REPLACED",
-                    "read_cost": "REPLACED",
-                    "filesort_type": "merge_sort with addon fields",
-                    "fanout": 1,
-                    "possible_keys": 
-                    [
-                        {
-                            "index": "a",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "b",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "col1",
-                            "can_resolve_order": true,
-                            "direction": 1,
-                            "rows_to_examine": 5000,
-                            "range_scan": false,
-                            "scan_cost": "REPLACED",
-                            "usable": false,
-                            "cause": "cost"
-                        }
-                    ]
-                }
-            }
-        ],
-        "can_skip_filesort": false,
-        "full_join_cost": "REPLACED",
-        "risk_ratio": 10,
-        "shortcut_join_cost": "REPLACED",
-        "shortcut_cost_with_risk": 197.826608,
-        "use_shortcut_cost": false
-    }
-]
+NULL
 #
 # Query 4: LEFT JOIN makes it impossible to put ORDER-BY-table first,
 #          however the optimizer still puts it as sort_by_table.
@@ -304,7 +197,8 @@
 1	PRIMARY	t10	ref	a	a	5	test.t10.a	1	
 1	PRIMARY	t1	ref	a,b	a	5	test.t10.a	100	Using where
 1	PRIMARY	t11	ref	b	b	5	test.t1.b	1	
-1	PRIMARY	t11	ref	b	b	5	test.t1.b	1	Using index; FirstMatch(t11)
+1	PRIMARY	<subquery3>	eq_ref	distinct_key	distinct_key	4	func	1	
+3	MATERIALIZED	t11	index	b	b	5	NULL	150	Using index
 set optimizer_join_limit_pref_ratio=10;
 # t1 is first, key=col1 produces ordering, no filesort or temporary:
 explain
@@ -331,54 +225,7 @@
 set @trace=(select trace from information_schema.optimizer_trace);
 select json_detailed(json_extract(@trace, '$**.join_limit_shortcut_choice')) as JS;
 JS
-[
-    {
-        "limit_fraction": 0.001,
-        "test_if_skip_sort_order_early": 
-        [
-            {
-                "reconsidering_access_paths_for_index_ordering": 
-                {
-                    "clause": "ORDER BY",
-                    "table": "t1",
-                    "rows_estimation": 10000,
-                    "filesort_cost": "REPLACED",
-                    "read_cost": "REPLACED",
-                    "filesort_type": "priority_queue with row lookup",
-                    "fanout": 1,
-                    "possible_keys": 
-                    [
-                        {
-                            "index": "a",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "b",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "col1",
-                            "can_resolve_order": true,
-                            "direction": 1,
-                            "rows_to_examine": 10,
-                            "range_scan": false,
-                            "scan_cost": "REPLACED",
-                            "chosen": true
-                        }
-                    ]
-                }
-            }
-        ],
-        "can_skip_filesort": true,
-        "full_join_cost": "REPLACED",
-        "risk_ratio": 10,
-        "shortcut_join_cost": "REPLACED",
-        "shortcut_cost_with_risk": 0.535649162,
-        "use_shortcut_cost": true
-    }
-]
+NULL
 #
 # Query 6: same as Query 1 but let's limit the search depth
 #
@@ -419,54 +266,7 @@
 set @trace=(select trace from information_schema.optimizer_trace);
 select json_detailed(json_extract(@trace, '$**.join_limit_shortcut_choice')) as JS;
 JS
-[
-    {
-        "limit_fraction": 0.001,
-        "test_if_skip_sort_order_early": 
-        [
-            {
-                "reconsidering_access_paths_for_index_ordering": 
-                {
-                    "clause": "ORDER BY",
-                    "table": "t1",
-                    "rows_estimation": 10000,
-                    "filesort_cost": "REPLACED",
-                    "read_cost": "REPLACED",
-                    "filesort_type": "priority_queue with row lookup",
-                    "fanout": 1,
-                    "possible_keys": 
-                    [
-                        {
-                            "index": "a",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "b",
-                            "can_resolve_order": false,
-                            "cause": "not usable index for the query"
-                        },
-                        {
-                            "index": "col1",
-                            "can_resolve_order": true,
-                            "direction": 1,
-                            "rows_to_examine": 10,
-                            "range_scan": false,
-                            "scan_cost": "REPLACED",
-                            "chosen": true
-                        }
-                    ]
-                }
-            }
-        ],
-        "can_skip_filesort": true,
-        "full_join_cost": "REPLACED",
-        "risk_ratio": 10,
-        "shortcut_join_cost": "REPLACED",
-        "shortcut_cost_with_risk": 0.495218616,
-        "use_shortcut_cost": true
-    }
-]
+NULL
 set optimizer_search_depth=@tmp_osd;
 set optimizer_trace=@tmp_os;
 # An extra testcase for MDEV-35164 (its main testcase is below).

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.order_by_limit_join/'
ReplayTest: Loading context 
main.range_interrupted-13751             [ pass ]     73
main.range_notembedded                   [ pass ]    269
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.range_vs_index_merge                [ fail ]
        Test ended at 2026-04-26 19:57:18

CURRENT_TEST: main.range_vs_index_merge
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/range_vs_index_merge.result	2026-04-24 13:53:12.185385321 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/range_vs_index_merge.reject	2026-04-26 19:57:18.148420720 +0300
@@ -48,14 +48,18 @@
 WHERE (Population >= 100000 OR Name LIKE 'P%') AND Country='CAN' OR
 (Population < 100000 OR Name Like 'T%') AND Country='ARG';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Country,Name	Country	3	NULL	104	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1824.
 EXPLAIN
 SELECT * FROM City
 WHERE Population < 200000 AND Name LIKE 'P%' AND
 (Population > 300000 OR Name LIKE 'T%') AND
 (Population < 100000 OR Name LIKE 'Pa%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Name	Name	35	NULL	135	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1220.
 EXPLAIN
 SELECT * FROM City
 WHERE Population > 100000 AND Name LIKE 'Aba%' OR
@@ -63,7 +67,9 @@
 Country <= 'ALB' AND Name LIKE 'L%' OR
 ID BETWEEN 3807 AND 3810;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Name,PRIMARY,Country	35,4,3	NULL	30	Using sort_union(Name,PRIMARY,Country); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1223.
 EXPLAIN 
 SELECT * FROM City
 WHERE (Population > 101000 AND Population < 115000);
@@ -206,7 +212,7 @@
 WHERE (Name < 'Ac' AND (Country > 'A' AND Country < 'B')) OR
 (Name BETWEEN 'P' AND 'S' AND (Population > 103000 AND Population < 104000));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Name,Population	35,4	NULL	50	Using sort_union(Name,Population); Using where
+1	SIMPLE	City	index_merge	Population,Country,Name	Country,Population	3,4	NULL	141	Using sort_union(Country,Population); Using where
 EXPLAIN
 SELECT  * FROM City
 WHERE (Name < 'Bb' AND (Country > 'A' AND Country < 'B')) OR
@@ -342,32 +348,42 @@
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'H%' OR Name LIKE 'P%' ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	223	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 646.
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'Ha%' OR Name LIKE 'Pa%' ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	72	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 647.
 EXPLAIN
 SELECT * FROM City
 WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 100 AND 110) AND 
 (Name LIKE 'P%' OR (Population > 103000 AND Population < 104000)));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name	PRIMARY	4	NULL	20	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1227.
 EXPLAIN
 SELECT * FROM City
 WHERE ((ID < 800) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 900 AND 1500) AND 
 (Name LIKE 'Pa%' OR (Population > 103000 AND Population < 105000)));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Name,Country,Population	35,3,4	NULL	151	Using sort_union(Name,Country,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1230.
 EXPLAIN
 SELECT * FROM City
 WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 100 AND 200) AND 
 (Name LIKE 'Pa%' OR (Population > 103200 AND Population < 104000)));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Name,Country,Population	35,3,4	NULL	124	Using sort_union(Name,Country,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1203.
 SELECT * FROM City USE INDEX ()
 WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG')))
 OR ((ID BETWEEN 100 AND 110) AND 
@@ -607,7 +623,9 @@
 EXPLAIN 
 SELECT * FROM City WHERE Name LIKE 'P%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	135	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 646.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 102000) AND
@@ -615,7 +633,9 @@
 ((ID BETWEEN 3400 AND 3800) AND 
 (Country < 'AGO' OR Name LIKE 'Pa%'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Country,Name,Population	3,35,4	NULL	83	Using sort_union(Country,Name,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 3486.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 110000) AND
@@ -623,7 +643,9 @@
 ((ID BETWEEN 3790 AND 3800) AND 
 (Country < 'C' OR Name LIKE 'P%'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name	Country,Name,PRIMARY	3,35,4	NULL	55	Using sort_union(Country,Name,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2360.
 SELECT * FROM City USE INDEX ()
 WHERE ((Population > 101000 AND Population < 102000) AND
 (Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR
@@ -678,11 +700,15 @@
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'Pas%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	4	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 761.
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'P%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	135	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 759.
 EXPLAIN
 SELECT * FROM City WHERE (Population > 101000 AND Population < 103000);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
@@ -700,13 +726,17 @@
 WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
 AND Country='USA';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name,CountryPopulation	CountryPopulation,Name	7,35	NULL	14	Using sort_union(CountryPopulation,Name); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 4252.
 EXPLAIN
 SELECT * FROM City 
 WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'P%')
 AND Country='EST';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	ref	Population,Country,Name,CountryPopulation	Country	3	const	2	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 4238.
 SELECT * FROM City 
 WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%')
 AND Country='USA';
@@ -795,7 +825,9 @@
 EXPLAIN
 SELECT * FROM City WHERE Name LIKE 'Pa%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Name	Name	35	NULL	41	Using index condition
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 867.
 set @tmp_range_vs_index_merge=@@optimizer_switch;
 set optimizer_switch='extended_keys=off';
 EXPLAIN
@@ -804,14 +836,18 @@
 ID BETWEEN 3790 AND 3800) AND Country='USA'
         AND (Name LIKE 'Pa%' OR ID BETWEEN 4025 AND 4035);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryPopulation,PRIMARY	7,4	NULL	14	Using sort_union(CountryPopulation,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 7816.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 103000) OR
 ID BETWEEN 3790 AND 3800) AND Country='USA'
         AND (Name LIKE 'Pa%' OR ID BETWEEN 4028 AND 4032);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryName,PRIMARY	38,4	NULL	11	Using sort_union(CountryName,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 7816.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 110000) OR
@@ -867,7 +903,9 @@
 ID BETWEEN 3790 AND 3800) AND Country='USA'
         OR (Name LIKE 'Pa%' OR ID BETWEEN 250 AND 260) AND Country='BRA';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryPopulation,PRIMARY,CountryName	7,4,38	NULL	35	Using sort_union(CountryPopulation,PRIMARY,CountryName); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 7911.
 SELECT * FROM City USE INDEX ()
 WHERE ((Population > 101000 and Population < 102000) OR
 ID BETWEEN 3790 AND 3800) AND Country='USA'
@@ -950,14 +988,18 @@
 ID BETWEEN 3500 AND 3800) AND Country='USA'
         AND (Name LIKE 'P%' OR ID BETWEEN 4000 AND 4300);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	CountryName	38	NULL	23	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2011.
 EXPLAIN
 SELECT * FROM City
 WHERE ((Population > 101000 AND Population < 11000) OR
 ID BETWEEN 3500 AND 3800) AND Country='USA'
         AND (Name LIKE 'Pho%' OR ID BETWEEN 4000 AND 4300);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country,Name,CountryPopulation,CountryName	Name	35	NULL	1	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2013.
 SELECT * FROM City USE INDEX ()
 WHERE ((Population > 101000 AND Population < 11000) OR
 ID BETWEEN 3500 AND 3800) AND Country='USA'
@@ -992,7 +1034,9 @@
 WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
 Country='USA' AND Name LIKE 'Pa%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Country,CountryPopulation,CountryName	CountryPopulation,CountryName	7,38	NULL	10	Using sort_union(CountryPopulation,CountryName); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 5342.
 SELECT * FROM City USE INDEX()
 WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR
 Country='USA' AND Name LIKE 'Pa%';
@@ -1022,7 +1066,9 @@
 WHERE Country='USA' AND 
 (Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Country,CountryPopulation,CountryName	CountryPopulation,CountryName	7,38	NULL	10	Using sort_union(CountryPopulation,CountryName); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 5342.
 SELECT * FROM City
 WHERE Country='USA' AND 
 (Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%');
@@ -1381,7 +1427,7 @@
 AND (Population >= 100000 AND Population < 120000)
 ORDER BY Population LIMIT 5;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Country,Name,Population	Population	4	NULL	#	Using index condition; Using where
+1	SIMPLE	City	range	Country,Name,Population	Population	4	NULL	#	Using where
 FLUSH STATUS;
 SELECT * FROM City
 WHERE ((Name > 'Ca' AND Name < 'Cf') OR (Country > 'E' AND Country < 'H'))

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.range_vs_index_merge/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.rowid_filter_myisam                 [ fail ]
        Test ended at 2026-04-26 19:57:20

CURRENT_TEST: main.rowid_filter_myisam
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/rowid_filter_myisam.result	2026-04-24 13:53:12.189385414 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/rowid_filter_myisam.reject	2026-04-26 19:57:19.952464348 +0300
@@ -129,47 +129,19 @@
 EXPLAIN EXTENDED SELECT * FROM t1 INNER JOIN t2 ON ( pk1 <> pk2 AND pk1 = a2 )
 WHERE b1 <= ( SELECT MAX(b2) FROM t2 WHERE pk2 <= 1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	101	100.00	Using where
-1	PRIMARY	t1	eq_ref	PRIMARY,b1	PRIMARY	4	test.t2.a2	1	87.00	Using where
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t2	range	PRIMARY	PRIMARY	4	NULL	1	100.00	Using index condition
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`pk1` AS `pk1`,`test`.`t1`.`a1` AS `a1`,`test`.`t1`.`b1` AS `b1`,`test`.`t2`.`pk2` AS `pk2`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b2` AS `b2` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`pk1` = `test`.`t2`.`a2` and `test`.`t1`.`b1` <= (/* select#2 */ select max(`test`.`t2`.`b2`) from `test`.`t2` where `test`.`t2`.`pk2` <= 1) and `test`.`t2`.`a2` <> `test`.`t2`.`pk2`
+Note	1003	/* select#1 */ select 0 AS `pk1`,NULL AS `a1`,NULL AS `b1`,`test`.`t2`.`pk2` AS `pk2`,`test`.`t2`.`a2` AS `a2`,`test`.`t2`.`b2` AS `b2` from `test`.`t1` join `test`.`t2` where 0
 EXPLAIN FORMAT=JSON SELECT * FROM t1 INNER JOIN t2 ON ( pk1 <> pk2 AND pk1 = a2 )
 WHERE b1 <= ( SELECT MAX(b2) FROM t2 WHERE pk2 <= 1 );
 EXPLAIN
 {
   "query_block": {
     "select_id": 1,
-    "cost": "COST_REPLACED",
-    "nested_loop": [
-      {
-        "table": {
-          "table_name": "t2",
-          "access_type": "ALL",
-          "loops": 1,
-          "rows": 101,
-          "cost": "COST_REPLACED",
-          "filtered": 100,
-          "attached_condition": "t2.a2 <> t2.pk2 and t2.a2 is not null"
-        }
-      },
-      {
-        "table": {
-          "table_name": "t1",
-          "access_type": "eq_ref",
-          "possible_keys": ["PRIMARY", "b1"],
-          "key": "PRIMARY",
-          "key_length": "4",
-          "used_key_parts": ["pk1"],
-          "ref": ["test.t2.a2"],
-          "loops": 101,
-          "rows": 1,
-          "cost": "COST_REPLACED",
-          "filtered": 87,
-          "attached_condition": "t1.b1 <= (subquery#2)"
-        }
-      }
-    ],
+    "table": {
+      "message": "Impossible WHERE noticed after reading const tables"
+    },
     "subqueries": [
       {
         "query_block": {
@@ -233,7 +205,10 @@
 select * from t1
 where el_index like '10%' and (el_index_60 like '10%' or el_index_60 like '20%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	el_index,el_index_60	el_index	62	NULL	645	Using where
+1	SIMPLE	t1	range	el_index,el_index_60	el_index	62	NULL	1	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(10) <= (el_index) <= (10\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ] doesn't exist in the list of ranges for table_name test.t1 and index_name el_index
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(10) <= (el_index_60) <= (10\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), (20) <= (el_index_60) <= (20\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\
 drop table t10, t11, t1;
 #
 # MDEV-22160: SIGSEGV in st_join_table::save_explain_data on SELECT
@@ -333,7 +308,9 @@
 explain
 select * from t1  where nm like '500%' AND fl2 = 0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	idx1,idx2	idx1	35	NULL	1	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 539.
 analyze format=json
 select * from t1  where nm like '500%' AND fl2 = 0;
 ANALYZE
@@ -393,7 +370,9 @@
 explain
 select * from t1  where nm like '500%' AND fl2 = 0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	idx1,idx2	idx1	35	NULL	1	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 539.
 analyze format=json
 select * from t1  where nm like '500%' AND fl2 = 0;
 ANALYZE
@@ -456,7 +435,9 @@
 explain
 select * from t1  where nm like '607%' AND fl2 = 0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	idx1,idx2	idx1	35	NULL	1	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 539.
 select * from t1  where nm like '607%' AND fl2 = 0;
 pk	nm	fl1	fl2
 721	607	0	0
@@ -478,7 +459,9 @@
 explain
 select * from t1  where nm like '75%' AND fl2 = 0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref|filter	idx1,idx2	idx2|idx1	2|35	const	55 (1%)	Using where; Using rowid filter
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 541.
 analyze format=json
 select * from t1  where nm like '75%' AND fl2 = 0;
 ANALYZE

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.rowid_filter_myisam/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.rownum                              [ fail ]
        Test ended at 2026-04-26 19:57:20

CURRENT_TEST: main.rownum
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/rownum.result	2026-04-24 13:55:48.353039527 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/rownum.reject	2026-04-26 19:57:20.536478470 +0300
@@ -963,7 +963,7 @@
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	5	100.00	
 2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	5	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select `tt`.`a` AS `a` from (/* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 1000 limit 5) `tt` where (/* select#3 */ select max(`test`.`t1`.`a`) from `test`.`t1`) >= rownum() limit 5
+Note	1003	/* select#1 */ select `tt`.`a` AS `a` from (/* select#2 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` < 1000) `tt` where (/* select#3 */ select max(`test`.`t1`.`a`) from `test`.`t1`) >= rownum()
 prepare stmt from "select * from (select a from t1 where a < 1000) as tt where  (select max(a) from t1) >= rownum()";
 execute stmt;
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.rownum/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.sargable_casefold                   [ pass ]    444
main.sargable_casefold_notembedded       [ pass ]      5
main.slowlog_enospace-10508              [ pass ]     60
main.sp-big                              [ pass ]   1915
main.sp-row                              [ pass ]    332
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.stat_tables_flush                   [ pass ]     55
main.statistics_upgrade                  [ pass ]    563
main.status_debug                        [ pass ]     15
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect                           [ fail ]
        Test ended at 2026-04-26 19:57:28

CURRENT_TEST: main.subselect
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect.result	2026-04-24 13:55:48.357039621 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect.reject	2026-04-26 19:57:28.232664437 +0300
@@ -401,7 +401,7 @@
 2	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	
 3	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	Using index
 Warnings:
-Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
+Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select '' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
 SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
 t8 WHERE pseudo='joce');
 ERROR HY000: Illegal parameter data types varchar and row for operation '='
@@ -3208,7 +3208,7 @@
              ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -3220,7 +3220,7 @@
             ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -4305,7 +4305,7 @@
 INSERT INTO t1 VALUES (1,1),(2,1);
 EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	a	a	5	const	1	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
 DROP TABLE t1;
 CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
@@ -4736,10 +4736,10 @@
 EXPLAIN EXTENDED
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 1
 1
@@ -5856,7 +5856,7 @@
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
 GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT b FROM t1
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
@@ -6102,7 +6102,7 @@
 1	SIMPLE	t1	ref	a	a	5	const	1	
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 DROP TABLE t1;
 #
@@ -6271,7 +6271,7 @@
 OR c_sq1_alias1.pk != @var3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6293,7 +6293,7 @@
 OR c_sq1_alias1.pk != @var3)) ) AS alias3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-3	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT * FROM ( SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6371,7 +6371,7 @@
 
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 
 DROP TABLE t1;
@@ -6951,7 +6951,7 @@
 HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a ) AS field
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR alias1.a = 'y'
@@ -6965,7 +6965,7 @@
 1	PRIMARY	alias1	index	a	a	19	NULL	11	Using where; Using index
 1	PRIMARY	alias2	ref	a	a	19	test.alias1.a	1	Using index
 1	PRIMARY	alias3	index	NULL	a	19	NULL	11	Using index; Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a )
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
@@ -7056,8 +7056,8 @@
 1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	alias2	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
 1	PRIMARY	alias3	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
-2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
+2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
+2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
 flush status;
 flush global status;
@@ -7101,7 +7101,7 @@
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect4                          [ fail ]
        Test ended at 2026-04-26 19:57:29

CURRENT_TEST: main.subselect4
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect4.result	2026-04-24 13:53:12.217386071 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect4.reject	2026-04-26 19:57:29.768701529 +0300
@@ -1260,10 +1260,9 @@
 EXPLAIN
 SELECT * FROM t4 LEFT JOIN t2 ON t4.c1 WHERE 's' IN (SELECT c1 FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t4	index	NULL	PRIMARY	3	NULL	2	Using index
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	
+1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	3	Using where; Start temporary; End temporary
+1	PRIMARY	t4	index	NULL	PRIMARY	3	NULL	2	Using index; Using join buffer (flat, BNL join)
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	3	Using where
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	Using where
 SELECT * FROM t4 LEFT JOIN t2 ON t4.c1 WHERE 's' IN (SELECT c1 FROM t2);
 c1	c1
 SET optimizer_switch=@save_optimizer_switch;
@@ -1756,7 +1755,7 @@
 EXPLAIN
 SELECT * FROM t1 WHERE ( 6 ) NOT IN ( SELECT t2.f3 FROM t2 JOIN t3 ON t3.f10 = t2.f10);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
+1	PRIMARY	t1	system	NULL	NULL	NULL	NULL	0	Const row not found
 2	SUBQUERY	t3	system	NULL	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	ref_or_null	f10	f10	10	const,const	2	Using where; Using index
 SELECT * FROM t1 WHERE ( 6 ) NOT IN ( SELECT t2.f3 FROM t2 JOIN t3 ON t3.f10 = t2.f10);
@@ -1778,8 +1777,8 @@
 SELECT DISTINCT f11
 FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	system	NULL	NULL	NULL	NULL	1	
-2	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 drop table t1, t2, t3;
 #
@@ -1800,9 +1799,8 @@
 WHERE EXISTS (SELECT DISTINCT f1 FROM t4))
 AND t2.f2 = t1.f1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	f1	f1	5	const	0	Using where
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
-2	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t4	index	NULL	f1	5	NULL	2	Using index
 SELECT *
 FROM t1, t2
@@ -1817,9 +1815,8 @@
 WHERE EXISTS (SELECT DISTINCT f1 FROM t4) LIMIT 1)
 AND t2.f2 = t1.f1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	f1	f1	5	const	0	Using where
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
-2	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t4	index	NULL	f1	5	NULL	2	Using index
 SELECT *
 FROM t1, t2
@@ -2520,13 +2517,6 @@
 INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
 INSERT INTO t2 VALUES (1,1),(2,2),(3,3);
 EXPLAIN EXTENDED SELECT sum(a), t2.a, t2.b FROM t2 HAVING t2.a IN (SELECT t2.b FROM t1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Zero limit
-2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	
-Warnings:
-Note	1276	Field or reference 'test.t2.b' of SELECT #2 was resolved in SELECT #1
-Note	1276	Field or reference 'test.t2.b' of SELECT #2 was resolved in SELECT #1
-Note	1003	/* select#1 */ select sum(`test`.`t2`.`a`) AS `sum(a)`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` having <in_optimizer>(`test`.`t2`.`a`,<exists>(/* select#2 */ select `test`.`t2`.`b` from `test`.`t1` where <cache>(`test`.`t2`.`a`) = `test`.`t2`.`b`))
 SELECT sum(a), t2.a, t2.b FROM t2 HAVING t2.a IN (SELECT t2.b FROM t1);
 sum(a)	a	b
 SET @@sql_select_limit= @save_sql_select_limit;
@@ -2605,7 +2595,7 @@
 EXPLAIN
 SELECT t1.a FROM t1 WHERE EXISTS (SELECT A.a FROM t1 A UNION SELECT B.a FROM t2 B ORDER BY 1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	A	ALL	NULL	NULL	NULL	NULL	2	
 3	UNION	B	ALL	NULL	NULL	NULL	NULL	2	
 NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	
@@ -2735,9 +2725,9 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	t1	index	NULL	v1	9	NULL	5	Using index
-2	MATERIALIZED	t3	ALL	NULL	NULL	NULL	NULL	4	Using where
-2	MATERIALIZED	t1	ref	v1	v1	4	test.t3.v2	1	Using index
-2	MATERIALIZED	t4	ALL	NULL	NULL	NULL	NULL	50	
+2	SUBQUERY	t1	ref_or_null	v1	v1	4	const	3	Using where; Using index
+2	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	4	Using where
+2	SUBQUERY	t4	ALL	NULL	NULL	NULL	NULL	50	Using where
 select 1
 from t2 join t1 on
 ('i','w') not in (select t1.v1,t4.v2 from t4,t1,t3 where t3.v2 = t1.v1) LIMIT ROWS EXAMINED 10;
@@ -2773,9 +2763,7 @@
 EXPLAIN
 SELECT * FROM t2 WHERE (t2.a,t2.b) IN (('abc',1), ('def', 2));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	Using where
-1	PRIMARY	<derived3>	ref	key1,distinct_key	key1	4	test.t2.b	1	Using where; FirstMatch(t2)
-3	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	5	Using where
 set names default;
 set @@in_predicate_conversion_threshold= @save_in_predicate_conversion_threshold;
 DROP TABLE t1,t2;
@@ -3299,7 +3287,7 @@
                 "rows": 2,
                 "cost": 0.01034841,
                 "filtered": 100,
-                "attached_condition": "trigcond(1 = t3.c or t3.c is null)"
+                "attached_condition": "trigcond(NULL = t3.c or t3.c is null)"
               }
             }
           ]

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect4/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_exists2in                 [ pass ]    462
ReplayTest: Loading context 
main.subselect_firstmatch                [ pass ]      8
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_no_exists_to_in           [ fail ]
        Test ended at 2026-04-26 19:57:33

CURRENT_TEST: main.subselect_no_exists_to_in
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_exists_to_in.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_exists_to_in.reject	2026-04-26 19:57:33.580793541 +0300
@@ -405,7 +405,7 @@
 2	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	
 3	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	Using index
 Warnings:
-Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
+Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select '' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
 SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
 t8 WHERE pseudo='joce');
 ERROR HY000: Illegal parameter data types varchar and row for operation '='
@@ -3211,7 +3211,7 @@
              ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -3223,7 +3223,7 @@
             ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -4308,7 +4308,7 @@
 INSERT INTO t1 VALUES (1,1),(2,1);
 EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	a	a	5	const	1	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
 DROP TABLE t1;
 CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
@@ -4739,10 +4739,10 @@
 EXPLAIN EXTENDED
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 1
 1
@@ -5858,7 +5858,7 @@
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
 GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT b FROM t1
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
@@ -6104,7 +6104,7 @@
 1	SIMPLE	t1	ref	a	a	5	const	1	
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 DROP TABLE t1;
 #
@@ -6273,7 +6273,7 @@
 OR c_sq1_alias1.pk != @var3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6295,7 +6295,7 @@
 OR c_sq1_alias1.pk != @var3)) ) AS alias3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-3	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT * FROM ( SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6373,7 +6373,7 @@
 
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 
 DROP TABLE t1;
@@ -6953,7 +6953,7 @@
 HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a ) AS field
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR alias1.a = 'y'
@@ -6967,7 +6967,7 @@
 1	PRIMARY	alias1	index	a	a	19	NULL	11	Using where; Using index
 1	PRIMARY	alias2	ref	a	a	19	test.alias1.a	1	Using index
 1	PRIMARY	alias3	index	NULL	a	19	NULL	11	Using index; Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a )
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
@@ -7058,8 +7058,8 @@
 1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	alias2	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
 1	PRIMARY	alias3	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
-2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
+2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
+2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
 flush status;
 flush global status;
@@ -7103,7 +7103,7 @@
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_no_exists_to_in/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_no_mat                    [ fail ]
        Test ended at 2026-04-26 19:57:37

CURRENT_TEST: main.subselect_no_mat
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_mat.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_mat.reject	2026-04-26 19:57:36.780870742 +0300
@@ -408,7 +408,7 @@
 2	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	
 3	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	Using index
 Warnings:
-Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
+Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select '' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
 SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
 t8 WHERE pseudo='joce');
 ERROR HY000: Illegal parameter data types varchar and row for operation '='
@@ -3213,7 +3213,7 @@
              ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -3225,7 +3225,7 @@
             ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -4308,7 +4308,7 @@
 INSERT INTO t1 VALUES (1,1),(2,1);
 EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	a	a	5	const	1	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
 DROP TABLE t1;
 CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
@@ -4640,10 +4640,10 @@
 SET join_cache_level=0;
 EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using temporary
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
@@ -4737,10 +4737,10 @@
 EXPLAIN EXTENDED
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 1
 1
@@ -5855,7 +5855,7 @@
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
 GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT b FROM t1
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
@@ -6101,7 +6101,7 @@
 1	SIMPLE	t1	ref	a	a	5	const	1	
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 DROP TABLE t1;
 #
@@ -6270,7 +6270,7 @@
 OR c_sq1_alias1.pk != @var3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6292,7 +6292,7 @@
 OR c_sq1_alias1.pk != @var3)) ) AS alias3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-3	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT * FROM ( SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6370,7 +6370,7 @@
 
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 
 DROP TABLE t1;
@@ -6950,7 +6950,7 @@
 HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a ) AS field
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR alias1.a = 'y'
@@ -6964,7 +6964,7 @@
 1	PRIMARY	alias1	index	a	a	19	NULL	11	Using where; Using index
 1	PRIMARY	alias2	ref	a	a	19	test.alias1.a	1	Using index
 1	PRIMARY	alias3	index	NULL	a	19	NULL	11	Using index; Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a )
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
@@ -7054,8 +7054,8 @@
 1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	alias2	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
 1	PRIMARY	alias3	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
-2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
+2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
+2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
 flush status;
 flush global status;
@@ -7099,7 +7099,7 @@
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_no_mat/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_no_opts                   [ fail ]
        Test ended at 2026-04-26 19:57:40

CURRENT_TEST: main.subselect_no_opts
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_opts.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_opts.reject	2026-04-26 19:57:39.804943664 +0300
@@ -404,7 +404,7 @@
 2	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	
 3	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	Using index
 Warnings:
-Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
+Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select '' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
 SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
 t8 WHERE pseudo='joce');
 ERROR HY000: Illegal parameter data types varchar and row for operation '='
@@ -3209,7 +3209,7 @@
              ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -3221,7 +3221,7 @@
             ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -4304,7 +4304,7 @@
 INSERT INTO t1 VALUES (1,1),(2,1);
 EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	a	a	5	const	1	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
 DROP TABLE t1;
 CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
@@ -4636,10 +4636,10 @@
 SET join_cache_level=0;
 EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using temporary
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
@@ -4733,10 +4733,10 @@
 EXPLAIN EXTENDED
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 1
 1
@@ -5851,7 +5851,7 @@
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
 GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT b FROM t1
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
@@ -6097,7 +6097,7 @@
 1	SIMPLE	t1	ref	a	a	5	const	1	
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 DROP TABLE t1;
 #
@@ -6266,7 +6266,7 @@
 OR c_sq1_alias1.pk != @var3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6288,7 +6288,7 @@
 OR c_sq1_alias1.pk != @var3)) ) AS alias3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-3	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT * FROM ( SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6366,7 +6366,7 @@
 
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 
 DROP TABLE t1;
@@ -6946,7 +6946,7 @@
 HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a ) AS field
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR alias1.a = 'y'
@@ -6960,7 +6960,7 @@
 1	PRIMARY	alias1	index	a	a	19	NULL	11	Using where; Using index
 1	PRIMARY	alias2	ref	a	a	19	test.alias1.a	1	Using index
 1	PRIMARY	alias3	index	NULL	a	19	NULL	11	Using index; Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a )
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
@@ -7051,8 +7051,8 @@
 1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	alias2	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
 1	PRIMARY	alias3	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
-2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
+2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
+2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
 flush status;
 flush global status;
@@ -7096,7 +7096,7 @@
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_no_opts/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_no_scache                 [ fail ]
        Test ended at 2026-04-26 19:57:43

CURRENT_TEST: main.subselect_no_scache
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_scache.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_scache.reject	2026-04-26 19:57:42.933019062 +0300
@@ -407,7 +407,7 @@
 2	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	
 3	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	Using index
 Warnings:
-Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
+Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select '' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
 SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
 t8 WHERE pseudo='joce');
 ERROR HY000: Illegal parameter data types varchar and row for operation '='
@@ -3214,7 +3214,7 @@
              ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -3226,7 +3226,7 @@
             ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -4311,7 +4311,7 @@
 INSERT INTO t1 VALUES (1,1),(2,1);
 EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	a	a	5	const	1	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
 DROP TABLE t1;
 CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
@@ -4742,10 +4742,10 @@
 EXPLAIN EXTENDED
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 1
 1
@@ -5862,7 +5862,7 @@
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
 GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT b FROM t1
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
@@ -6108,7 +6108,7 @@
 1	SIMPLE	t1	ref	a	a	5	const	1	
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 DROP TABLE t1;
 #
@@ -6277,7 +6277,7 @@
 OR c_sq1_alias1.pk != @var3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6299,7 +6299,7 @@
 OR c_sq1_alias1.pk != @var3)) ) AS alias3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-3	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT * FROM ( SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6377,7 +6377,7 @@
 
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 
 DROP TABLE t1;
@@ -6957,7 +6957,7 @@
 HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a ) AS field
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR alias1.a = 'y'
@@ -6971,7 +6971,7 @@
 1	PRIMARY	alias1	index	a	a	19	NULL	11	Using where; Using index
 1	PRIMARY	alias2	ref	a	a	19	test.alias1.a	1	Using index
 1	PRIMARY	alias3	index	NULL	a	19	NULL	11	Using index; Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a )
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
@@ -7062,8 +7062,8 @@
 1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	alias2	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
 1	PRIMARY	alias3	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
-2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
+2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
+2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
 flush status;
 flush global status;
@@ -7107,7 +7107,7 @@
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_no_scache/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_no_semijoin               [ fail ]
        Test ended at 2026-04-26 19:57:46

CURRENT_TEST: main.subselect_no_semijoin
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_semijoin.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_no_semijoin.reject	2026-04-26 19:57:46.073094713 +0300
@@ -404,7 +404,7 @@
 2	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	
 3	SUBQUERY	t8	const	PRIMARY	PRIMARY	37	const	1	100.00	Using index
 Warnings:
-Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select 'test' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
+Note	1003	/* select#1 */ select 'joce' AS `pseudo`,(/* select#2 */ select '' from `test`.`t8` where 1) AS `(SELECT email FROM t8 WHERE pseudo=(SELECT pseudo FROM t8 WHERE pseudo='joce'))` from `test`.`t8` where 1
 SELECT pseudo FROM t8 WHERE pseudo=(SELECT pseudo,email FROM
 t8 WHERE pseudo='joce');
 ERROR HY000: Illegal parameter data types varchar and row for operation '='
@@ -3209,7 +3209,7 @@
              ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -3221,7 +3221,7 @@
             ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t1	system	PRIMARY	NULL	NULL	NULL	1	
-1	PRIMARY	r	const	PRIMARY	PRIMARY	4	const	1	
+1	PRIMARY	r	const	PRIMARY	NULL	NULL	NULL	1	
 2	SUBQUERY	t2	range	cb	cb	40	NULL	3	Using index condition
 SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
 ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
@@ -4304,7 +4304,7 @@
 INSERT INTO t1 VALUES (1,1),(2,1);
 EXPLAIN SELECT 1 FROM t1 WHERE a = (SELECT COUNT(*) FROM t1 GROUP BY b);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ref	a	a	5	const	1	Using where; Using index
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
 DROP TABLE t1;
 CREATE TABLE t1 (id int NOT NULL, st CHAR(2), INDEX idx(id));
@@ -4636,10 +4636,10 @@
 SET join_cache_level=0;
 EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 GROUP BY a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using temporary
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 EXPLAIN EXTENDED SELECT 1 FROM t1 WHERE 1 IN (SELECT min(a) FROM t1 WHERE a > 3 GROUP BY a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
@@ -4733,10 +4733,10 @@
 EXPLAIN EXTENDED
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 Warnings:
-Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 1
+Note	1003	/* select#1 */ select 1 AS `1` from `test`.`t1` where 0
 SELECT 1 FROM t1 WHERE 1 < SOME (SELECT a1 FROM t1);
 1
 1
@@ -5851,7 +5851,7 @@
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
 GROUP BY b;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary; Using filesort
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT b FROM t1
 WHERE ('0') IN ( SELECT a  FROM t1 GROUP BY a )
@@ -6097,7 +6097,7 @@
 1	SIMPLE	t1	ref	a	a	5	const	1	
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 DROP TABLE t1;
 #
@@ -6266,7 +6266,7 @@
 OR c_sq1_alias1.pk != @var3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6288,7 +6288,7 @@
 OR c_sq1_alias1.pk != @var3)) ) AS alias3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-3	DEPENDENT SUBQUERY	c_sq1_alias1	system	PRIMARY	NULL	NULL	NULL	1	
+3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 SELECT * FROM ( SELECT sq4_alias1.*
 FROM t1 AS sq4_alias1
 WHERE (sq4_alias1.col_varchar_key , sq4_alias1.col_varchar_nokey)
@@ -6366,7 +6366,7 @@
 
 EXPLAIN SELECT * FROM t1 WHERE EXISTS (SELECT * FROM t1 WHERE a=7);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 2	SUBQUERY	t1	ref	a	a	5	const	1	Using index
 
 DROP TABLE t1;
@@ -6946,7 +6946,7 @@
 HAVING field>'B' AND ( 'Moscow' ) IN ( SELECT a FROM t1 );
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a ) AS field
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR alias1.a = 'y'
@@ -6960,7 +6960,7 @@
 1	PRIMARY	alias1	index	a	a	19	NULL	11	Using where; Using index
 1	PRIMARY	alias2	ref	a	a	19	test.alias1.a	1	Using index
 1	PRIMARY	alias3	index	NULL	a	19	NULL	11	Using index; Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	index_subquery	a	a	19	const	1	Using index; Using where
+2	SUBQUERY	t1	ref	a	a	19	const	1	Using where; Using index
 SELECT MAX( alias2.a )
 FROM t1 AS alias1, t1 AS alias2, t1 AS alias3
 WHERE alias1.a = alias2.a OR ('Moscow') IN ( SELECT a FROM t1 );
@@ -7051,8 +7051,8 @@
 1	PRIMARY	alias1	ALL	NULL	NULL	NULL	NULL	2	
 1	PRIMARY	alias2	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
 1	PRIMARY	alias3	ALL	NULL	NULL	NULL	NULL	2	Using join buffer (flat, BNL join)
-2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
-2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
+2	DEPENDENT SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
+2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where; Using join buffer (flat, BNL join)
 3	SUBQUERY	t3	ALL	NULL	NULL	NULL	NULL	2	
 flush status;
 flush global status;
@@ -7096,7 +7096,7 @@
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	
 SELECT * FROM t1 WHERE 4 IN (SELECT MAX(b) FROM t2 WHERE EXISTS (SELECT * FROM t1));
 a

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_no_semijoin/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_partial_match             [ pass ]    651
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_sj_jcl6                   [ fail ]
        Test ended at 2026-04-26 19:57:50

CURRENT_TEST: main.subselect_sj_jcl6
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj_jcl6.result	2026-04-24 13:53:12.225386259 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj_jcl6.reject	2026-04-26 19:57:50.461200374 +0300
@@ -782,8 +782,6 @@
 Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`c` = `test`.`t1`.`a` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
 show warnings;
 Level	Code	Message
-Note	1276	Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t2`.`c` = `test`.`t1`.`a` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
 select a from t1
 where a in (select c from t2 where d >= some(select e from t3 where b=e));
 a
@@ -2581,7 +2579,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t3	index	b	b	5	NULL	10	Using where; Using index; Start temporary
 1	PRIMARY	t4	ref	c	c	5	test.t3.b	1	Using join buffer (flat, BKA join); Key-ordered Rowid-ordered scan
-1	PRIMARY	t1	ALL	b	NULL	NULL	NULL	10	Using where; Using join buffer (incremental, BNL join)
+1	PRIMARY	t1	ref	b	b	5	test.t3.b	2	Using join buffer (incremental, BKA join); Key-ordered Rowid-ordered scan
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	8	Using where; End temporary; Using join buffer (incremental, BNL join)
 SELECT a, b, d FROM t1, t2
 WHERE ( b, d ) IN

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_sj_jcl6/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f2 does not exist
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f2 does not exist
ReplayTest: Loading context 
main.subselect_sj_mat                    [ fail ]
        Test ended at 2026-04-26 19:57:52

CURRENT_TEST: main.subselect_sj_mat
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj_mat.result	2026-04-24 13:55:48.361039714 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj_mat.reject	2026-04-26 19:57:51.845233687 +0300
@@ -107,7 +107,7 @@
 explain extended
 select * from t1i where a1 in (select b1 from t2i where b1 > '0');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2i	index	it2i1,it2i3	it2i1	#	NULL	5	50.00	Using where; Using index; LooseScan
+1	PRIMARY	t2i	index	it2i1,it2i3	it2i1	#	NULL	5	100.00	Using where; Using index; LooseScan
 1	PRIMARY	t1i	ref	_it1_idx	_it1_idx	#	_ref_	1	20.00	
 Warnings:
 Note	1003	select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t2i`.`b1` > '0'
@@ -130,7 +130,7 @@
 explain extended
 select * from t1i where (a1, a2) in (select b1, b2 from t2i where b1 > '0');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2i	index	it2i1,it2i2,it2i3	it2i3	#	NULL	5	50.00	Using where; Using index; LooseScan
+1	PRIMARY	t2i	index	it2i1,it2i2,it2i3	it2i3	#	NULL	5	100.00	Using where; Using index; LooseScan
 1	PRIMARY	t1i	ref	_it1_idx	_it1_idx	#	_ref_	1	20.00	
 Warnings:
 Note	1003	select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b1` > '0'
@@ -276,7 +276,7 @@
 explain extended
 select * from t1i where (a1, a2) in (select b1, b2 from t2i order by b1, b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2i	index	it2i1,it2i2,it2i3	it2i3	18	NULL	5	50.00	Using where; Using index; LooseScan
+1	PRIMARY	t2i	index	it2i1,it2i2,it2i3	it2i3	18	NULL	5	100.00	Using where; Using index; LooseScan
 1	PRIMARY	t1i	ref	it1i1,it1i2,it1i3	it1i3	18	test.t2i.b1,test.t2i.b2	1	20.00	Using index
 Warnings:
 Note	1003	select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2`
@@ -332,7 +332,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	it2i3	18	test.t1.a1,test.t1.a2	1	100.00	Using index; Start temporary
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	20.00	Using where; Using join buffer (flat, BNL join)
-1	PRIMARY	t3	ALL	NULL	NULL	NULL	NULL	4	15.00	Using where; End temporary; Using join buffer (flat, BNL join)
+1	PRIMARY	t3	ALL	NULL	NULL	NULL	NULL	4	25.00	Using where; End temporary; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3`) where `test`.`t2i`.`b1` = `test`.`t1`.`a1` and `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t3`.`c1` = `test`.`t1`.`a1` and `test`.`t2i`.`b2` = `test`.`t1`.`a2` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and `test`.`t3`.`c2` = `test`.`t1`.`a2` and `test`.`t1`.`a1` > '0' and `test`.`t1`.`a2` > '0'
 select * from t1
@@ -348,10 +348,10 @@
 (a1, a2) in (select c1, c2 from t3i
 where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t2i	index	it2i1,it2i2,it2i3	#	#	#	5	50.00	#
+1	PRIMARY	t2i	index	it2i1,it2i2,it2i3	#	#	#	5	100.00	#
 1	PRIMARY	t1i	ref	it1i1,it1i2,it1i3	#	#	#	1	20.00	#
 1	PRIMARY	t3i	ref	it3i1,it3i2,it3i3	#	#	#	1	100.00	#
-1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	#	#	#	1	60.00	#
+1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	#	#	#	1	100.00	#
 Warnings:
 Note	1003	select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) semi join (`test`.`t2i` join `test`.`t3i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t3i`.`c1` = `test`.`t2i`.`b1` and `test`.`t2i`.`b1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2` and `test`.`t3i`.`c2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b1` > '0' and `test`.`t2i`.`b2` > '0'
 select * from t1i
@@ -372,7 +372,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	it2i3	18	test.t1.a1,test.t1.a2	1	100.00	Using index; Start temporary
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	20.00	Using where; Using join buffer (flat, BNL join)
-1	PRIMARY	t3	ALL	NULL	NULL	NULL	NULL	4	15.00	Using where; End temporary; Using join buffer (flat, BNL join)
+1	PRIMARY	t3	ALL	NULL	NULL	NULL	NULL	4	25.00	Using where; End temporary; Using join buffer (flat, BNL join)
 4	MATERIALIZED	t3	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 3	MATERIALIZED	t3	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
@@ -393,16 +393,15 @@
 (a1, a2) in (select c1, c2 from t3 t3c
 where (c1, c2) in (select b1, b2 from t2i where b2 > '0'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	20.00	Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
-1	PRIMARY	<subquery5>	eq_ref	distinct_key	distinct_key	16	func,func	1	100.00	
-5	MATERIALIZED	t3c	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
-5	MATERIALIZED	t2i	ref	it2i1,it2i2,it2i3	it2i3	18	test.t3c.c1,test.t3c.c2	1	100.00	Using index
+1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
+1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	it2i3	18	test.t1.a1,test.t1.a2	1	100.00	Using index; Start temporary
+1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	100.00	Using where; Using join buffer (flat, BNL join)
+1	PRIMARY	t3c	ALL	NULL	NULL	NULL	NULL	4	5.00	Using where; End temporary; Using join buffer (flat, BNL join)
 4	MATERIALIZED	t3b	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 3	DEPENDENT SUBQUERY	t3a	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
 Note	1276	Field or reference 'test.t1.a1' of SELECT #3 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3` `t3c`) where `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t2i`.`b1` = `test`.`t3c`.`c1` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and `test`.`t2i`.`b2` = `test`.`t3c`.`c2` and (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and `test`.`t3c`.`c2` > '0'
+Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3` `t3c`) where `test`.`t2i`.`b1` = `test`.`t1`.`a1` and `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t3c`.`c1` = `test`.`t1`.`a1` and `test`.`t2i`.`b2` = `test`.`t1`.`a2` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and `test`.`t3c`.`c2` = `test`.`t1`.`a2` and (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and `test`.`t1`.`a2` > '0'
 select * from t1
 where (a1, a2) in (select b1, b2 from t2
 where b2 in (select c2 from t3 t3a where c1 = a1) or
@@ -429,13 +428,13 @@
 1	PRIMARY	t1	ALL	NULL	#	#	#	3	100.00	#
 1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	#	#	#	1	100.00	#
 1	PRIMARY	t2	ALL	NULL	#	#	#	5	20.00	#
-1	PRIMARY	t3	ALL	NULL	#	#	#	4	15.00	#
+1	PRIMARY	t3	ALL	NULL	#	#	#	4	25.00	#
 4	MATERIALIZED	t3	ALL	NULL	#	#	#	4	100.00	#
 3	MATERIALIZED	t3	ALL	NULL	#	#	#	4	100.00	#
-7	UNION	t2i	index	it2i1,it2i2,it2i3	#	#	#	5	50.00	#
+7	UNION	t2i	index	it2i1,it2i2,it2i3	#	#	#	5	100.00	#
 7	UNION	t1i	ref	it1i1,it1i2,it1i3	#	#	#	1	20.00	#
 7	UNION	t3i	ref	it3i1,it3i2,it3i3	#	#	#	1	100.00	#
-7	UNION	t2i	ref	it2i1,it2i2,it2i3	#	#	#	1	60.00	#
+7	UNION	t2i	ref	it2i1,it2i2,it2i3	#	#	#	1	100.00	#
 NULL	UNION RESULT	<union1,7>	ALL	NULL	#	#	#	NULL	NULL	#
 Warnings:
 Note	1003	(/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3`) where `test`.`t2i`.`b1` = `test`.`t1`.`a1` and `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t3`.`c1` = `test`.`t1`.`a1` and `test`.`t2i`.`b2` = `test`.`t1`.`a2` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and `test`.`t3`.`c2` = `test`.`t1`.`a2` and (<expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#3 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%02' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery3>`.`c2`)))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`))))) and `test`.`t1`.`a2` > '0') union (/* select#7 */ select `test`.`t1i`.`a1` AS `a1`,`test`.`t1i`.`a2` AS `a2` from `test`.`t1i` semi join (`test`.`t2i`) semi join (`test`.`t2i` join `test`.`t3i`) where `test`.`t1i`.`a1` = `test`.`t2i`.`b1` and `test`.`t3i`.`c1` = `test`.`t2i`.`b1` and `test`.`t2i`.`b1` = `test`.`t2i`.`b1` and `test`.`t1i`.`a2` = `test`.`t2i`.`b2` and `test`.`t3i`.`c2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b2` = `test`.`t2i`.`b2` and `test`.`t2i`.`b1` > '0' and `test`.`t2i`.`b2` > '0')
@@ -530,22 +529,22 @@
 where (c1, c2) in (select b1, b2 from t2i where b2 > '0' or b2 = a2));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	20.00	Using where; Start temporary; End temporary; Using join buffer (flat, BNL join)
 1	PRIMARY	t2i	ref	it2i1,it2i2,it2i3	it2i3	18	test.t1.a1,test.t1.a2	1	100.00	Using index; Start temporary
-1	PRIMARY	t3c	ALL	NULL	NULL	NULL	NULL	4	15.00	Using where; End temporary; Using join buffer (flat, BNL join)
+1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	5	100.00	Using where; Using join buffer (flat, BNL join)
+1	PRIMARY	t3c	ALL	NULL	NULL	NULL	NULL	4	5.00	Using where; End temporary; Using join buffer (flat, BNL join)
 4	MATERIALIZED	t3b	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 3	DEPENDENT SUBQUERY	t3a	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
 Note	1276	Field or reference 'test.t1.a1' of SELECT #3 was resolved in SELECT #1
 Note	1276	Field or reference 'test.t1.a2' of SELECT #6 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3` `t3c`) where `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t2i`.`b1` = `test`.`t1`.`a1` and `test`.`t3c`.`c1` = `test`.`t1`.`a1` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and `test`.`t2i`.`b2` = `test`.`t1`.`a2` and `test`.`t3c`.`c2` = `test`.`t1`.`a2` and (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`)))))
+Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` semi join (`test`.`t2`) semi join (`test`.`t2i` join `test`.`t3` `t3c`) where `test`.`t2i`.`b1` = `test`.`t1`.`a1` and `test`.`t2`.`b1` = `test`.`t1`.`a1` and `test`.`t3c`.`c1` = `test`.`t1`.`a1` and `test`.`t2i`.`b2` = `test`.`t1`.`a2` and `test`.`t2`.`b2` = `test`.`t1`.`a2` and `test`.`t3c`.`c2` = `test`.`t1`.`a2` and (<expr_cache><`test`.`t2`.`b2`,`test`.`t1`.`a1`>(<in_optimizer>(`test`.`t2`.`b2`,<exists>(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and <cache>(`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <expr_cache><`test`.`t2`.`b2`>(<in_optimizer>(`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( <materialize> (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), <primary_index_lookup>(`test`.`t2`.`b2` in <temporary table> on distinct_key where `test`.`t2`.`b2` = `<subquery4>`.`c2`)))))
 explain extended
 select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
+Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = convert('1 - 01' using latin1) or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = convert('2 - 01' using latin1) or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
 select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01');
 a1	a2
 1 - 01	2 - 01
@@ -555,7 +554,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 2	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = '1 - 01' or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = '2 - 01' or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
+Note	1003	/* select#1 */ select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2` from `test`.`t1` where <expr_cache><`test`.`t1`.`a1`,`test`.`t1`.`a2`>(<in_optimizer>((`test`.`t1`.`a1`,`test`.`t1`.`a2`),<exists>(/* select#2 */ select '1 - 01','2 - 01' having (<cache>(`test`.`t1`.`a1`) = convert('1 - 01' using latin1) or /*always not null*/ 1 is null) and (<cache>(`test`.`t1`.`a2`) = convert('2 - 01' using latin1) or /*always not null*/ 1 is null) and '1 - 01' is null and '2 - 01' is null)))
 select * from t1 where (a1, a2) in (select '1 - 01', '2 - 01' from dual);
 a1	a2
 1 - 01	2 - 01
@@ -704,10 +703,9 @@
 where a1 in (select group_concat(b1) from t2_16 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_16	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_16.a1	1	100.00	Using where
-2	MATERIALIZED	t2_16	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_16	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2`) join `test`.`t1_16` where `test`.`t1_16`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_16`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_16`.`a2`,7) AS `left(a2,7)` from `test`.`t1_16` where <expr_cache><`test`.`t1_16`.`a1`>(<in_optimizer>(`test`.`t1_16`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` having <cache>(`test`.`t1_16`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_16`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_16
 where a1 in (select group_concat(b1) from t2_16 group by b2);
@@ -804,10 +802,9 @@
 where a1 in (select group_concat(b1) from t2_512 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_512.a1	1	100.00	Using where
-2	MATERIALIZED	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2`) join `test`.`t1_512` where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having <cache>(`test`.`t1_512`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_512`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_512
 where a1 in (select group_concat(b1) from t2_512 group by b2);
@@ -822,10 +819,9 @@
 where a1 in (select group_concat(b1) from t2_512 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_512.a1	1	100.00	Using where
-2	MATERIALIZED	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_512	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2`) join `test`.`t1_512` where `test`.`t1_512`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_512`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_512`.`a2`,7) AS `left(a2,7)` from `test`.`t1_512` where <expr_cache><`test`.`t1_512`.`a1`>(<in_optimizer>(`test`.`t1_512`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having <cache>(`test`.`t1_512`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_512`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_512
 where a1 in (select group_concat(b1) from t2_512 group by b2);
@@ -907,10 +903,9 @@
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_1024.a1	1	100.00	Using where
-2	MATERIALIZED	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2`) join `test`.`t1_1024` where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having <cache>(`test`.`t1_1024`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1024`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1024
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
@@ -926,10 +921,9 @@
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_1024.a1	1	100.00	Using where
-2	MATERIALIZED	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1024	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2`) join `test`.`t1_1024` where `test`.`t1_1024`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_1024`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1024`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1024` where <expr_cache><`test`.`t1_1024`.`a1`>(<in_optimizer>(`test`.`t1_1024`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having <cache>(`test`.`t1_1024`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1024`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1024
 where a1 in (select group_concat(b1) from t2_1024 group by b2);
@@ -1012,10 +1006,9 @@
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_1025.a1	1	100.00	Using where
-2	MATERIALIZED	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2`) join `test`.`t1_1025` where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having <cache>(`test`.`t1_1025`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1025`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1025
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
@@ -1031,10 +1024,9 @@
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	260	test.t1_1025.a1	1	100.00	Using where
-2	MATERIALIZED	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
+2	DEPENDENT SUBQUERY	t2_1025	ALL	NULL	NULL	NULL	NULL	3	100.00	Using filesort
 Warnings:
-Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from  <materialize> (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2`) join `test`.`t1_1025` where `test`.`t1_1025`.`a1` = `<subquery2>`.`group_concat(b1)`
+Note	1003	/* select#1 */ select left(`test`.`t1_1025`.`a1`,7) AS `left(a1,7)`,left(`test`.`t1_1025`.`a2`,7) AS `left(a2,7)` from `test`.`t1_1025` where <expr_cache><`test`.`t1_1025`.`a1`>(<in_optimizer>(`test`.`t1_1025`.`a1`,<exists>(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having <cache>(`test`.`t1_1025`.`a1`) = <ref_null_helper>(group_concat(`test`.`t2_1025`.`b1` separator ',')))))
 select left(a1,7), left(a2,7)
 from t1_1025
 where a1 in (select group_concat(b1) from t2_1025 group by b2);
@@ -2026,10 +2018,7 @@
 WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
 WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	system	NULL	NULL	NULL	NULL	1	
-1	PRIMARY	t2	index	c	c	5	NULL	8	Using where; Using index
-1	PRIMARY	s1	ref	c	c	5	test.t2.c	1	Using where
-1	PRIMARY	s2	ref	d	d	4	const	2	Using where; Using index; FirstMatch(t2)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	8	
 SELECT a, c FROM t1, t2
 WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
@@ -2045,10 +2034,7 @@
 WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
 WHERE s2.d = s1.e AND s1.e = (SELECT MAX(e) FROM t2));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	system	NULL	NULL	NULL	NULL	1	
-1	PRIMARY	t2	index	c	c	5	NULL	8	Using where; Using index
-1	PRIMARY	s1	hash_ALL	c	#hash#c	5	test.t2.c	8	Using where; Using join buffer (flat, BNLH join)
-1	PRIMARY	s2	hash_range	d	#hash#d:d	4:4	const	2	Using where; Using index; FirstMatch(t2); Using join buffer (incremental, BNLH join)
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	8	
 SELECT a, c FROM t1, t2
 WHERE (a, c) IN (SELECT s1.b, s1.c FROM t2 AS s1, t2 AS s2
@@ -2596,13 +2582,7 @@
 explain extended select * from t1
 left join t4 on t1.b = t4.id
 where f1(t1.id, '1980-01-01') in (select id from t2 where x=1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	Using where
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t4`.`id` AS `id`,`test`.`t4`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) left join `test`.`t4` on(`test`.`t4`.`id` = `test`.`t1`.`b`) where `test`.`t2`.`x` = 1 and `f1`(`test`.`t1`.`id`,'1980-01-01') = `test`.`t2`.`id`
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 # Non-deterministic function in left part of IN subq: semi-join is OK
 select * from t1
 left join t4 on t1.b = t4.id
@@ -2614,13 +2594,7 @@
 explain extended select * from t1
 left join t4 on t1.b = t4.id
 where f2(t1.id, '1980-01-01') in (select id from t2 where x=1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	
-1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	Using where
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t4`.`id` AS `id`,`test`.`t4`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) left join `test`.`t4` on(`test`.`t4`.`id` = `test`.`t1`.`b`) where `test`.`t2`.`x` = 1 and `f2`(`test`.`t1`.`id`,'1980-01-01') = `test`.`t2`.`id`
+ReplayTest: Query error: FUNCTION test.f2 does not exist
 select t1.*, t4.*,
 (select max(t4.id) from t4 where t4.id=t1.b and sleep(0) = 0) as s
 from t1 left join t4 on t1.b = t4.id
@@ -2633,15 +2607,7 @@
 (select max(t4.id) from t4 where t4.id=t1.b and sleep(0) = 0) as s
 from t1 left join t4 on t1.b = t4.id
 where f2(t1.id, '1980-01-01') in (select id from t2 where x=1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	
-1	PRIMARY	<subquery3>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	Using where
-1	PRIMARY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where; Using join buffer (flat, BNL join)
-3	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
-2	DEPENDENT SUBQUERY	t4	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
-Warnings:
-Note	1276	Field or reference 'test.t1.b' of SELECT #2 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `test`.`t1`.`id` AS `id`,`test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t4`.`id` AS `id`,`test`.`t4`.`a` AS `a`,(/* select#2 */ select max(`test`.`t4`.`id`) from `test`.`t4` where `test`.`t4`.`id` = `test`.`t1`.`b` and sleep(0) = 0) AS `s` from `test`.`t1` semi join (`test`.`t2`) left join `test`.`t4` on(`test`.`t4`.`id` = `test`.`t1`.`b`) where `test`.`t2`.`x` = 1 and `f2`(`test`.`t1`.`id`,'1980-01-01') = `test`.`t2`.`id`
+ReplayTest: Query error: FUNCTION test.f2 does not exist
 drop function f1;
 drop function f2;
 drop table t1,t2,t3,t4;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_sj_mat/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_general_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.table_elim                          [ fail ]
        Test ended at 2026-04-26 19:57:52

CURRENT_TEST: main.table_elim
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/table_elim.result	2026-04-24 13:53:12.229386352 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/table_elim.reject	2026-04-26 19:57:52.673253613 +0300
@@ -247,11 +247,7 @@
 insert into t2 values ('FOO');
 this must not use table elimination:
 explain select t1.* from t1 left join t2 on t2.a='foo' collate latin1_general_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	NULL	PRIMARY	10	NULL	2	Using index
-1	SIMPLE	t2	index	PRIMARY	PRIMARY	10	NULL	2	Using where; Using index
-Warnings:
-Note	1105	Cannot use key `PRIMARY` part[0] for lookup: `test`.`t2`.`a` of collation `latin1_general_cs` = "'foo' collate latin1_general_ci" of collation `latin1_general_ci`
+ReplayTest: Query error: COLLATION 'latin1_general_ci' is not valid for CHARACTER SET 'utf8mb4'
 this must not use table elimination:
 explain select t1.* from t1 left join t2 on t2.a=t1.a collate latin1_general_ci;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.table_elim/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Table 'seq_1_to_1000000' already exists
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/user_var.test"
ReplayTest: At line 522
main.user_var                            [ fail ]
        Test ended at 2026-04-26 19:57:53

CURRENT_TEST: main.user_var
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/user_var.result	2026-04-24 13:53:12.249386822 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/user_var.reject	2026-04-26 19:57:53.289268437 +0300
@@ -22,7 +22,7 @@
 2	1	0	0	1
 explain select * from t1 where i=@vv1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	i	i	4	const	2	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 select @vv1,i,v from t1 where i=@vv1;
 @vv1	i	v
 1	1	1
@@ -35,7 +35,7 @@
 1	SIMPLE	t1	index	NULL	i	4	NULL	3	Using where; Using index
 explain select * from t1 where i=@vv1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	i	i	4	const	2	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 drop table t1,t2;
 set @a=0,@b=0;
 select @a:=10,   @b:=1,   @a > @b, @a < @b;
@@ -576,8 +576,7 @@
 set @var= repeat('a',30000);
 1
 explain select @a:=max(seq) from seq_1_to_1000000;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Select tables optimized away
+ReplayTest: Query error: Table 'seq_1_to_1000000' already exists
 #
 # Start of 10.3 tests
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.user_var/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.vector2                             [ pass ]    546
main.vector_subdist                      [ pass ]   1008
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.win                                 [ pass ]   3672
main.warnings                            [ pass ]     95
main.skip_log_bin                        [ pass ]     26
ReplayTest: Loading context 
main.partition_disabled                  [ pass ]     52
main.myisam_crash_before_flush_keys      [ pass ]    272
main.variables-notembedded               [ pass ]     66
main.ssl_system_ca 'bad'                 [ pass ]     29
main.ssl_8k_key                          [ pass ]     36
main.ssl_timeout-9836                    [ pass ]   2014
main.thread_pool_info                    [ pass ]   1459
main.ssl_cipher                          [ skipped ]  OpenSSL 1.1.1
main.mysql_json_table_recreate           [ pass ]   2012
main.mysql_upgrade_mysql_json_with_plugin_loaded [ pass ]   2592
main.lowercase_mixed_tmpdir              [ pass ]     40
main.grant_lowercase                     [ pass ]     40
main.lowercase_view                      [ pass ]     62
main.lowercase_table                     [ pass ]     94
main.lowercase_table_grant               [ pass ]      5
main.lowercase_table_qcache              [ pass ]      6
main.master_retry_count_basic            [ pass ]   1527
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.variables                           [ fail ]
        Test ended at 2026-04-26 19:58:18

CURRENT_TEST: main.variables
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/variables.result	2026-04-24 13:53:12.249386822 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/variables.reject	2026-04-26 19:58:18.229867504 +0300
@@ -1527,7 +1527,7 @@
 set sql_buffer_result=1;
 explain SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE f1 = 0);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	Using temporary
+1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	Using where
 SELECT 1 as 'one' FROM t1 GROUP BY @a:= (SELECT ROUND(f1) FROM t1 WHERE f1 = 0);
 one
@@ -1779,22 +1779,22 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select @@VERsion AS "@@VERsion" from DUAL  where rand() > @@version
+Note	1003	select @@VERsion AS `@@VERsion` from DUAL  where rand() > @@version
 explain extended select @@SESsion.SQL_mode from dual where rand() > @@sesSION.sql_MODE;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select @@SESsion.SQL_mode AS "@@SESsion.SQL_mode" from DUAL  where rand() > @@sql_mode
+Note	1003	select @@SESsion.SQL_mode AS `@@SESsion.SQL_mode` from DUAL  where rand() > @@sql_mode
 explain extended select @@GLObal.COLLATION_connection from dual where rand() > @@gloBAL.collation_CONNECTION;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select @@GLObal.COLLATION_connection AS "@@GLObal.COLLATION_connection" from DUAL  where rand() > @@global.collation_connection
+Note	1003	select @@GLObal.COLLATION_connection AS `@@GLObal.COLLATION_connection` from DUAL  where rand() > @@global.collation_connection
 explain extended select @@FOObar.KEY_BUFfer_size from dual where rand() > @@fooBAR.key_bufFER_SIZE;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select @@FOObar.KEY_BUFfer_size AS "@@FOObar.KEY_BUFfer_size" from DUAL  where rand() > @@fooBAR.key_buffer_size
+Note	1003	select @@FOObar.KEY_BUFfer_size AS `@@FOObar.KEY_BUFfer_size` from DUAL  where rand() > @@fooBAR.key_buffer_size
 #
 # MDEV-15316 Assertion `(thd->lex)->var_list.is_empty()' failed in MYSQLparse
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.variables/'
main.user_limits                         [ pass ]     56
main.count_distinct2                     [ pass ]    988
main.multi_update_tiny_hash              [ pass ]     16
main.myisam_recover                      [ pass ]    444
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.myisam                              [ fail ]
        Test ended at 2026-04-26 19:58:23

CURRENT_TEST: main.myisam
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/myisam.result	2026-04-24 13:55:48.341039247 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/myisam.reject	2026-04-26 19:58:22.849978254 +0300
@@ -1260,7 +1260,9 @@
 1	SIMPLE	t1	ref	t	t	13	const	#	Using where
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	13	NULL	#	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 504.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	13	const	#	Using where; Using index
@@ -1456,7 +1458,9 @@
 1	SIMPLE	t1	ref	v	v	303	const	#	Using where; Using index
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	303	NULL	#	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 520.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	303	const	#	Using where; Using index
@@ -1536,7 +1540,9 @@
 1	SIMPLE	t1	ref	v	v	33	const	#	Using where
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	33	NULL	#	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 520.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	33	const	#	Using where

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.myisam/'
***Warnings generated in error logs during shutdown after running tests: main.myisam

2026-04-26 19:58:22 4 [ERROR] Got an error from thread_id=4, /home/psergey/dev-git2/13.0-context-replay/storage/myisam/ha_myisam.cc:1097
2026-04-26 19:58:22 4 [ERROR] MariaDB thread id 4, OS thread handle 139974733903616, query id 3060 localhost root Checking table
2026-04-26 19:58:22 4 [ERROR] mariadbd: Table './test/t1' is marked as crashed and should be repaired

main.old-mode                            [ pass ]     68
main.plugin_auth_qa                      [ pass ]     92
main.plugin_auth_qa_1                    [ pass ]    326
main.plugin_auth_qa_2                    [ pass ]    134
main.plugin_auth_qa_3                    [ pass ]     25
main.plugin_maturity                     [ pass ]      1
main.handlersocket                       [ pass ]      4
main.plugin                              [ pass ]     59
main.plugin_not_embedded                 [ pass ]   1427
main.truncate_badse                      [ pass ]      6
main.query_cache_notembedded             [ pass ]   6186
main.bug58669                            [ pass ]     41
main.require_secure_transport            [ pass ]     13
main.require_secure_transport_on         [ pass ]     12
main.grant3                              [ pass ]    105
main.secure_file_priv_win                [ skipped ]  Need windows
main.skip_grants                         [ pass ]   4317
main.udf_skip_grants                     [ pass ]      1
main.flush2                              [ pass ]      4
main.mysqldump-no-binlog                 [ pass ]     14
main.kill-2                              [ pass ]      9
main.skip_name_resolve                   [ pass ]      9
main.my_getopt_case_insensitive          [ pass ]       
main.mysqlslap                           [ pass ]   3076
main.chained_ssl_certificates            [ pass ]   2730
main.ssl_crl 'file'                      [ pass ]     30
main.ssl_crl 'path'                      [ pass ]     30
main.wolfssl                             [ pass ]      1
main.sysdate_is_now                      [ pass ]   1001
main.no-threads                          [ pass ]      1
main.shutdown_debug '1tpc'               [ pass ]   1563
main.mdev-21101                          [ pass ]   3306
main.shutdown_debug 'pot'                [ pass ]   1645
main.tls_version                         [ pass ]    198
main.long_tmpdir                         [ pass ]      1
main.trans_read_only                     [ pass ]     49
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.selectivity_no_engine               [ fail ]
        Test ended at 2026-04-26 19:59:05

CURRENT_TEST: main.selectivity_no_engine
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_no_engine.result	2026-04-24 13:53:12.193385508 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/selectivity_no_engine.reject	2026-04-26 19:59:05.326993328 +0300
@@ -64,25 +64,25 @@
 # Should select about 10%:
 explain extended select * from t1 where a=2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	9.52	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	18.18	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 2
 # Should select about 10%:
 explain extended select * from t1 where a=1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	9.52	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	18.18	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1
 # Must not have filtered=100%:
 explain extended select * from t1 where a=0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	9.52	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	18.18	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 0
 # Again, must not have filtered=100%:
 explain extended select * from t1 where a=-1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	9.52	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	18.18	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = -1
 drop table t0, t1;
@@ -103,18 +103,18 @@
 test.t1	analyze	status	OK
 explain extended select * from t1 where col1 in (1,2,3);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10000	2.97	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10000	3.00	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` in (1,2,3)
 # Must not cause fp division by zero, or produce nonsense numbers:
 explain extended select * from t1 where col1 in (-1,-2,-3);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10000	5.94	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10000	11.76	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` in (-1,-2,-3)
 explain extended select * from t1 where col1<=-1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10000	1.00	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10000	1.96	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` <= -1
 drop table t1, t2;
@@ -156,7 +156,7 @@
 # 10% is ok
 explain extended select * from t1 where col1=2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	9.90	Using where
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	1000	19.61	Using where
 Warnings:
 Note	1003	select `test`.`t1`.`key1` AS `key1`,`test`.`t1`.`col1` AS `col1` from `test`.`t1` where `test`.`t1`.`col1` = 2
 # Must show 100%, not 10%
@@ -266,15 +266,15 @@
 # Filtered will be 4.95, 9.90
 explain extended select * from t1 ta, t2 tb where ta.a < 40 and tb.a < 100;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	ta	ALL	NULL	NULL	NULL	NULL	1000	4.95	Using where
-1	SIMPLE	tb	ALL	NULL	NULL	NULL	NULL	1000	9.90	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	ta	ALL	NULL	NULL	NULL	NULL	1000	9.80	Using where
+1	SIMPLE	tb	ALL	NULL	NULL	NULL	NULL	1000	19.61	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`ta`.`a` AS `a`,`test`.`tb`.`a` AS `a` from `test`.`t1` `ta` join `test`.`t2` `tb` where `test`.`ta`.`a` < 40 and `test`.`tb`.`a` < 100
 # Here, tb.filtered should not become 100%:
 explain extended select * from t1 ta, t2 tb where ta.a < 40 and tb.a < 100 and tb.a=ta.a;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	ta	ALL	NULL	NULL	NULL	NULL	1000	4.95	Using where
-1	SIMPLE	tb	ALL	NULL	NULL	NULL	NULL	1000	4.95	Using where; Using join buffer (flat, BNL join)
+1	SIMPLE	ta	ALL	NULL	NULL	NULL	NULL	1000	9.80	Using where
+1	SIMPLE	tb	ALL	NULL	NULL	NULL	NULL	1000	9.80	Using where; Using join buffer (flat, BNL join)
 Warnings:
 Note	1003	select `test`.`ta`.`a` AS `a`,`test`.`tb`.`a` AS `a` from `test`.`t1` `ta` join `test`.`t2` `tb` where `test`.`tb`.`a` = `test`.`ta`.`a` and `test`.`ta`.`a` < 40 and `test`.`ta`.`a` < 100
 drop table t0,t1,t2;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.selectivity_no_engine/'
main.stat_tables_par                     [ pass ]   2508
main.mysqldump-compat-102                [ pass ]     22
main.analyze_format_json_emb             [ skipped ]  Test requires: embedded server
main.count_distinct3                     [ pass ]  14395
main.create_delayed                      [ pass ]   1375
main.flush_corruption                    [ pass ]  36066
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_outer                          [ pass ]   8166
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.join_outer_jcl6                     [ pass ]   8585
main.long_unique_big                     [ pass ]   3965
main.myisam-big                          [ pass ]   5103
main.query_cache_debug                   [ pass ]     32
main.ssl-big                             [ pass ]  34819
main.type_newdecimal-big                 [ pass ]   3230
main.1st                                 [ pass ]      1
main.aborted_clients                     [ pass ]      3
main.adddate_454                         [ pass ]      2
main.alias                               [ pass ]     35
main.almost_full                         [ pass ]     37
main.alter_table_combinations 'aria'     [ pass ]     52
main.alter_table_combinations 'heap'     [ pass ]     28
main.alter_table_debug                   [ pass ]      7
main.alter_table_locknone_notembedded    [ pass ]     18
main.alter_table_mdev539_maria           [ pass ]   2602
main.alter_table_mdev539_myisam          [ pass ]    902
main.alter_table_upgrade_aria            [ pass ]     10
main.alter_table_upgrade_myisam          [ pass ]      7
main.alter_table_upgrade_myisam_debug    [ pass ]     20
main.alter_user                          [ pass ]     30
main.analyze_debug                       [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.analyze_stmt                        [ fail ]
        Test ended at 2026-04-26 20:01:13

CURRENT_TEST: main.analyze_stmt
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/analyze_stmt.result	2026-04-24 13:53:12.009381191 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/analyze_stmt.reject	2026-04-26 20:01:13.526026011 +0300
@@ -329,7 +329,7 @@
 insert into t1 values (1),(2);
 explain delete from t1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	2	Deleting all rows
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	0	Deleting all rows
 select * from t1;
 i
 1

Result content mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.analyze_stmt/'
main.analyze_stmt_privileges             [ pass ]     73
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'privtest_db.v1' doesn't exist
ReplayTest: Failed query was: EXPLAIN INSERT INTO v1 (a) VALUES (10)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'privtest_db.v2' doesn't exist
ReplayTest: Failed query was: EXPLAIN INSERT INTO v2 (a) VALUES (10)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.analyze_stmt_privileges2            [ fail ]
        Test ended at 2026-04-26 20:01:15

CURRENT_TEST: main.analyze_stmt_privileges2
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/analyze_stmt_privileges2.result	2026-04-24 13:53:12.009381191 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/analyze_stmt_privileges2.reject	2026-04-26 20:01:15.266066887 +0300
@@ -388,8 +388,7 @@
 #------------------------------------------------------------------------
 INSERT INTO v1 (a) VALUES (10);
 EXPLAIN INSERT INTO v1 (a) VALUES (10);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'privtest_db.v1' doesn't exist
 ANALYZE INSERT INTO v1 (a) VALUES (10);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL	100.00	100.00	NULL
@@ -410,7 +409,7 @@
 REPLACE INTO v1 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -501,8 +500,7 @@
 #------------------------------------------------------------------------
 INSERT INTO v2 (a) VALUES (10);
 EXPLAIN INSERT INTO v2 (a) VALUES (10);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'privtest_db.v2' doesn't exist
 ANALYZE INSERT INTO v2 (a) VALUES (10);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL	100.00	100.00	NULL
@@ -523,7 +521,7 @@
 REPLACE INTO v2 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -1506,7 +1504,7 @@
 REPLACE INTO v1 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -1621,7 +1619,7 @@
 REPLACE INTO v2 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -1743,7 +1741,7 @@
 REPLACE INTO t1 SELECT * FROM t2;
 EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO t1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -1851,7 +1849,7 @@
 REPLACE INTO v1 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -1965,7 +1963,7 @@
 REPLACE INTO v2 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -2717,7 +2715,7 @@
 REPLACE INTO v2 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -3891,7 +3889,7 @@
 REPLACE INTO v1 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -4004,7 +4002,7 @@
 REPLACE INTO v2 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	
@@ -5127,7 +5125,7 @@
 REPLACE INTO v2 SELECT * FROM t2;
 EXPLAIN REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 ANALYZE REPLACE INTO v2 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	r_rows	filtered	r_filtered	Extra
 1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	3.00	100.00	100.00	

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.analyze_stmt_privileges2/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ansi                                [ fail ]
        Test ended at 2026-04-26 20:01:15

CURRENT_TEST: main.ansi
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ansi.result	2026-04-24 13:53:12.013381286 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ansi.reject	2026-04-26 20:01:15.658076095 +0300
@@ -60,12 +60,12 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select -1 << concat(1,1) AS "a"
+Note	1003	select -1 << 1 or 1 AS `a`
 EXPLAIN EXTENDED SELECT -1||0<<1 AS a FROM DUAL;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select concat(-1,0) << 1 AS "a"
+Note	1003	select -1 or 0 << 1 AS `a`
 SELECT -1+1||1 AS a FROM DUAL;
 a
 10
@@ -76,12 +76,12 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select -1 + concat(1,1) AS "a"
+Note	1003	select -1 + 1 or 1 AS `a`
 EXPLAIN EXTENDED SELECT -1||0+1 AS a FROM DUAL;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select concat(-1,0) + 1 AS "a"
+Note	1003	select -1 or 0 + 1 AS `a`
 SELECT 1*1||-1 AS a FROM DUAL;
 a
 1
@@ -94,12 +94,12 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select 1 * concat(1,-1) AS "a"
+Note	1003	select 1 * 1 or -1 AS `a`
 EXPLAIN EXTENDED SELECT 1||1*-1 AS a FROM DUAL;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select concat(1,1) * -1 AS "a"
+Note	1003	select 1 or 1 * -1 AS `a`
 SELECT -1^1||1 AS a FROM DUAL;
 a
 18446744073709551604
@@ -110,9 +110,9 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select -1 ^ concat(1,1) AS "a"
+Note	1003	select -1 ^ 1 or 1 AS `a`
 EXPLAIN EXTENDED SELECT -1||0^1 AS a FROM DUAL;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select concat(-1,0) ^ 1 AS "a"
+Note	1003	select -1 or 0 ^ 1 AS `a`

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ansi/'
ReplayTest: Loading context 
main.aria_icp_debug                      [ pass ]    118
main.assign_key_cache_debug              [ pass ]   1006
ReplayTest: Loading context 
main.auto_increment                      [ pass ]     72
main.backup_aria                         [ pass ]     24
main.bad_frm_crash_5029                  [ pass ]      3
worker[01] Trying to dump core for [mysqltest - pid: 6699, winpid: 6699]
worker[01] Trying to dump core for [mysqld.1 - pid: 6629, winpid: 6629, exit: 0]
main.bad_startup_options                 [ fail ]  timeout after 900 seconds
        Test ended at 2026-04-26 20:16:24

Test case timeout after 900 seconds

== /optane/dev-git2/13.0-context-replay/mysql-test/var/log/bad_startup_options.log == 
FOUND 1 /\[ERROR\] SSL error: Unable to get certificate/ in errorlog.err

 == /optane/dev-git2/13.0-context-replay/mysql-test/var/tmp/analyze-timeout-mysqld.1.err ==
mysqltest: Could not open connection 'default': 2013 Lost connection to server at 'handshake: reading initial communication packet', system error: 104


 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.bad_startup_options/'
main.bad_startup_options_debug           [ pass ]   1532
ReplayTest: Loading context 
main.bench_count_distinct                [ pass ]     22
main.bigint                              [ pass ]     45
ReplayTest: Loading context 
ReplayTest: Loading context 
main.binary                              [ fail ]
        Test ended at 2026-04-26 20:16:26

CURRENT_TEST: main.binary
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/binary.result	2026-04-24 13:53:12.013381286 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/binary.reject	2026-04-26 20:16:26.402896424 +0300
@@ -182,6 +182,8 @@
 SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF029082020');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	idx	idx	20	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(\x1F\x94\x80\x17\x93f\xF2\xBFV~\x1CK\x96L\x1E\xF0)\x08  ) <= (a) <= (\x1F\x94\x80\x17\x93f\xF2\xBFV~\x1CK\x96L\x1E\xF0)\x08  ), ] doesn't exist in the list of ranges for table_name test.t1 and index_name idx
 SELECT hex(a) from t1 WHERE a=unhex('1F9480179366F2BF567E1C4B964C1EF02908');
 hex(a)
 DROP TABLE t1;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.binary/'
main.binary_to_hex                       [ pass ]    108
main.blackhole_plugin                    [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.brackets                            [ pass ]    297
main.bug12427262                         [ pass ]     10
main.bug13633383                         [ pass ]      6
main.bulk_replace                        [ pass ]      2
main.cache_temporal_4265                 [ pass ]      5
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.case                                [ fail ]
        Test ended at 2026-04-26 20:16:28

CURRENT_TEST: main.case
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/case.result	2026-04-24 13:53:12.017381379 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/case.reject	2026-04-26 20:16:28.414941711 +0300
@@ -151,10 +151,6 @@
 COALESCE(1), COALESCE(1.0),COALESCE('a'),
 COALESCE(1,1.0), COALESCE(1,'1'),COALESCE(1.1,'1'),
 COALESCE('a' COLLATE latin1_bin,'b');
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-Warnings:
-Note	1003	select coalesce(1) AS `COALESCE(1)`,coalesce(1.0) AS `COALESCE(1.0)`,coalesce('a') AS `COALESCE('a')`,coalesce(1,1.0) AS `COALESCE(1,1.0)`,coalesce(1,'1') AS `COALESCE(1,'1')`,coalesce(1.1,'1') AS `COALESCE(1.1,'1')`,coalesce('a' collate latin1_bin,'b') AS `COALESCE('a' COLLATE latin1_bin,'b')`
 SHOW CREATE TABLE t1;
 Table	Create Table
 t1	CREATE TABLE `t1` (

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.case/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.cast                                [ pass ]    198
main.change_user                         [ pass ]     15
main.change_user_notembedded             [ pass ]   5013
main.charset_client_win_utf8mb4          [ skipped ]  Need windows
main.check                               [ pass ]   2296
main.check_constraint                    [ pass ]     45
main.check_constraint_show               [ pass ]      2
main.check_view_protocol                 [ skipped ]  Test requires view-protocol
main.cli_options_force_protocol_not_win  [ pass ]    144
main.client                              [ pass ]    200
main.client_xml                          [ pass ]    150
main.column_compression_utf16            [ pass ]      2
main.comment_column                      [ pass ]     51
main.comment_column2                     [ pass ]     44
main.comment_database                    [ pass ]   1433
main.comment_index                       [ pass ]     43
main.comment_table                       [ pass ]     15
main.comments                            [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.compare                             [ pass ]     27
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.compress                            [ pass ]   7135
main.connect-no-db                       [ pass ]       
main.connect_debug                       [ pass ]     17
main.constraints                         [ pass ]     30
main.contributors                        [ pass ]       
main.count_distinct                      [ pass ]     24
ReplayTest: Loading context 
main.create                              [ pass ]   5292
main.create-uca                          [ pass ]      6
main.create_drop_db                      [ pass ]      3
main.create_drop_event                   [ pass ]   1166
main.create_drop_index                   [ pass ]      6
main.create_drop_procedure               [ pass ]      7
main.create_drop_role                    [ pass ]     13
main.create_drop_server                  [ pass ]      4
main.create_drop_trigger                 [ pass ]     16
main.create_drop_udf                     [ pass ]      5
main.create_drop_user                    [ pass ]     26
main.create_drop_view                    [ pass ]      6
main.create_not_windows                  [ pass ]      7
main.create_or_replace_permission        [ pass ]      7
main.create_replace_tmp                  [ pass ]      1
main.create_user                         [ pass ]     27
main.create_utf8                         [ pass ]     12
main.create_w_max_indexes_128            [ skipped ]  Test needs mysqld built with --with-max-indexes=128
main.create_w_max_indexes_64             [ pass ]     24
main.create_windows                      [ skipped ]  Need windows
main.cte_cycle                           [ pass ]     12
main.cte_grant                           [ pass ]     19
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.cte_nonrecursive                    [ pass ]    373
main.cte_nonrecursive_not_embedded       [ pass ]      7
main.cte_recursive_not_embedded          [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.tf' doesn't exist
ReplayTest: Failed query was: explain with cte as (select f1 as a, f1() as b, 2 as d from tf),
cte2 as (select * from t2 where b < 3 group by a)
update cte, cte2, t3 set t3.a = cte.a+2 where cte.b = cte2.b and d = t3.a
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.cte_update_delete                   [ fail ]
        Test ended at 2026-04-26 20:17:01

CURRENT_TEST: main.cte_update_delete
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/cte_update_delete.result	2026-04-24 13:55:48.325038873 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/cte_update_delete.reject	2026-04-26 20:17:01.355682938 +0300
@@ -597,12 +597,7 @@
 explain with cte as (select f1 as a, f1() as b, 2 as d from tf),
 cte2 as (select * from t2 where b < 3 group by a)
 update cte, cte2, t3 set t3.a = cte.a+2 where cte.b = cte2.b and d = t3.a;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived2>	system	NULL	NULL	NULL	NULL	1	
-1	PRIMARY	<derived3>	ref	key0	key0	5	const	1	Using where
-1	PRIMARY	t3	ALL	NULL	NULL	NULL	NULL	8	Using where
-2	DERIVED	tf	system	NULL	NULL	NULL	NULL	1	
-3	DERIVED	t2	ALL	NULL	NULL	NULL	NULL	13	Using where; Using temporary; Using filesort
+ReplayTest: Direct EXPLAIN failed on replay server: 1146 Table 'test.tf' doesn't exist
 with cte as (select f1 as a, f1() as b, 2 as d from tf),
 cte2 as (select * from t2 where b < 3 group by a)
 update cte, cte2, t3 set t3.a = cte.a+2 where cte.b = cte2.b and d = t3.a;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.cte_update_delete/'
main.ctype_ascii                         [ pass ]     55
main.ctype_big5                          [ pass ]   3378
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_binary                        [ pass ]    350
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_collate                       [ fail ]
        Test ended at 2026-04-26 20:17:06

CURRENT_TEST: main.ctype_collate
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_collate.result	2026-04-24 13:53:12.029381661 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_collate.reject	2026-04-26 20:17:06.079789206 +0300
@@ -605,37 +605,21 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	s2	s2	11	const	1	Using index condition
 EXPLAIN SELECT * FROM t1 WHERE s1='a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	s1	s1	11	const	1	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2='a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` = "'a' collate latin1_german1_ci" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s1 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	s1	s1	11	NULL	2	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` >= "'a'" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s1 IN  ('a','b' COLLATE latin1_german1_ci);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	s1	s1	11	NULL	2	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2 IN  ('a','b' COLLATE latin1_german1_ci);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` = "'a'" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s1 LIKE 'a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	s1	s1	11	NULL	1	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2 LIKE 'a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` like "'a' collate latin1_german1_ci" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 DROP TABLE t1;
 create table t1(f1 varchar(10) character set latin2 collate latin2_hungarian_ci, key(f1));
 insert into t1 set f1=0x3F3F9DC73F;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_collate/'
main.ctype_collate_column                [ pass ]   3722
main.ctype_collate_context               [ pass ]   3594
main.ctype_collate_database              [ pass ]     15
main.ctype_collate_implicit              [ pass ]     23
main.ctype_collate_implicit_utf32        [ pass ]      4
main.ctype_collate_table                 [ pass ]      7
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_cp1250_ch                     [ pass ]     70
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_cp1251                        [ pass ]    305
main.ctype_cp850                         [ pass ]     58
main.ctype_cp866                         [ pass ]       
main.ctype_cp932                         [ pass ]     55
main.ctype_create                        [ pass ]     20
main.ctype_dec8                          [ pass ]      3
main.ctype_errors                        [ pass ]      8
main.ctype_eucjpms                       [ pass ]   2290
main.ctype_euckr                         [ pass ]   1281
main.ctype_filename                      [ pass ]     24
main.ctype_gb2312                        [ pass ]   3287
main.ctype_gbk                           [ pass ]   3301
main.ctype_gbk_export_import             [ skipped ]  Need POSIX locale zh_CN.gbk
main.ctype_hebrew                        [ pass ]      3
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_latin1                        [ fail ]
        Test ended at 2026-04-26 20:17:30

CURRENT_TEST: main.ctype_latin1
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_latin1.result	2026-04-24 13:53:12.045382036 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_latin1.reject	2026-04-26 20:17:30.552339587 +0300
@@ -3657,7 +3657,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select 'abcdó' AS `abcdó`,_latin1'abcd\xC3\xB3' AS `abcdó`,_utf8mb3'abcd\xC3\xB3' AS `abcd`
+Note	1003	select 'abcdó' AS `abcdó`,_latin1'abcd\xC3\xB3' AS `abcdÃ³`,_utf8mb3'abcd\xC3\xB3' AS `abcdó`
 #
 # End of 5.5 tests
 #
@@ -8120,10 +8120,7 @@
 a
 a
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a IN ('a' COLLATE latin1_bin,'b') AND a='a';
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` in (<cache>('a' collate latin1_bin),'b')
+ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
 DROP TABLE t1;
 #
 # MDEV-8698 Wrong result for SELECT..WHERE a BETWEEN 'a' AND 'c' COLLATE latin1_bin;
@@ -8140,10 +8137,7 @@
 a
 a
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a BETWEEN 'a' AND 'c' COLLATE latin1_bin AND a='a';
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	6	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` between 'a' and <cache>('c' collate latin1_bin)
+ReplayTest: Query error: COLLATION 'latin1_bin' is not valid for CHARACTER SET 'utf8mb4'
 DROP TABLE t1;
 #
 # MDEV-8707 Wrong result for SELECT..WHERE varchar_column=DATE'2001-01-01' AND varchar_column='2001-01-01'

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_latin1/'
main.ctype_latin1_de                     [ pass ]     94
main.ctype_latin2                        [ pass ]     31
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_latin2_ch                     [ pass ]     69
main.ctype_like_range                    [ pass ]    329
main.ctype_many                          [ pass ]     60
main.ctype_mb                            [ pass ]      7
main.ctype_nopad_8bit                    [ pass ]    750
main.ctype_recoding                      [ pass ]     29
main.ctype_sjis                          [ pass ]   3183
main.ctype_swe7                          [ pass ]   1857
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_tis620                        [ pass ]    143
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'utf8mb3_german2_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'utf8mb3_german2_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_uca                           [ fail ]
        Test ended at 2026-04-26 20:17:40

CURRENT_TEST: main.ctype_uca
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_uca.result	2026-04-24 13:53:12.053382224 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_uca.reject	2026-04-26 20:17:39.940550670 +0300
@@ -6753,7 +6753,9 @@
 ch
 EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
 ch
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
@@ -6772,13 +6774,17 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 ch
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 ch
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
@@ -6822,7 +6828,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
 ch
 a
@@ -6845,7 +6853,9 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch<'a𝌆b' ORDER BY ch;
 ch
 a
@@ -6874,14 +6884,18 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆' ORDER BY ch;
 ch
 z
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	ch	ch	183	NULL	#	Using where; Using index
+1	SIMPLE	t1	range	ch	ch	183	NULL	#	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch>'a𝌆b' ORDER BY ch;
 ch
 z
@@ -6972,7 +6986,9 @@
 ch
 EXPLAIN SELECT ch FROM t1 WHERE ch='admin𝌆';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	2	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch='admin𝌆';
 ch
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='admin𝌆';
@@ -6991,13 +7007,17 @@
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆' ORDER BY ch;
 ch
 EXPLAIN
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+1	SIMPLE	t1	ref	ch	ch	183	const	#	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: test.t1.ch doesn't exist in list of range contexts
 SELECT ch FROM t1 FORCE KEY (ch) WHERE ch='a𝌆b' ORDER BY ch;
 ch
 SELECT ch FROM t1 IGNORE KEY (ch) WHERE ch<'a𝌆' ORDER BY ch;
@@ -8383,7 +8403,9 @@
 ALTER TABLE t1 ADD KEY(c);
 EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	c	c	43	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 343.
 SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
 hex(c)	hex(weight_string(c))
 61	120F
@@ -13904,15 +13926,9 @@
 a
 oe
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='oe' AND a='oe' COLLATE utf8_german2_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'oe' and `test`.`t1`.`a` = 'oe'
+ReplayTest: Query error: COLLATION 'utf8mb3_german2_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='oe' COLLATE utf8_german2_ci AND a='oe';
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 'oe' and `test`.`t1`.`a` = 'oe'
+ReplayTest: Query error: COLLATION 'utf8mb3_german2_ci' is not valid for CHARACTER SET 'utf8mb4'
 DROP TABLE t1;
 #
 # MDEV-17064 LIKE function has error behavior on the fields in which the collation is xxx_unicode_xx

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_uca/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_ucs                           [ fail ]
        Test ended at 2026-04-26 20:17:41

CURRENT_TEST: main.ctype_ucs
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_ucs.result	2026-04-24 13:55:48.325038873 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_ucs.reject	2026-04-26 20:17:40.996574412 +0300
@@ -251,10 +251,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 select * from t1 where a like "abc%";
 a
 abc
@@ -1564,10 +1568,14 @@
 INSERT INTO t1 VALUES ('da'),('dz'), (X'0064017E');
 EXPLAIN SELECT * FROM t1 WHERE a LIKE 'b%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	1	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 355.
 EXPLAIN SELECT * FROM t1 WHERE a LIKE 'c%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	31	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 354.
 SELECT * FROM t1 WHERE a LIKE 'c%';
 a
 ca
@@ -1576,20 +1584,26 @@
 ch
 EXPLAIN SELECT * FROM t1 WHERE a LIKE 'ch%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	1	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 343.
 SELECT * FROM t1 WHERE a LIKE 'ch%';
 a
 ch
 ALTER TABLE t1 MODIFY a VARCHAR(10) CHARACTER SET ucs2 COLLATE ucs2_croatian_ci;
 EXPLAIN SELECT * FROM t1 WHERE a LIKE 'd%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	31	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 354.
 SELECT hex(concat('d',_ucs2 0x017E,'%'));
 hex(concat('d',_ucs2 0x017E,'%'))
 0064017E0025
 EXPLAIN SELECT * FROM t1 WHERE a LIKE concat('d',_ucs2 0x017E,'%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	1	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 357.
 SELECT hex(a) FROM t1 WHERE a LIKE concat('D',_ucs2 0x017E,'%');
 hex(a)
 0064017E
@@ -6067,10 +6081,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc
@@ -6465,10 +6483,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	23	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_ucs/'
main.ctype_ucs2_uca                      [ pass ]    282
main.ctype_ujis                          [ pass ]   1932
main.ctype_ujis_ucs2                     [ pass ]    838
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf16                         [ fail ]
        Test ended at 2026-04-26 20:17:45

CURRENT_TEST: main.ctype_utf16
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf16.result	2026-04-24 13:53:12.057382317 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf16.reject	2026-04-26 20:17:45.172668295 +0300
@@ -132,10 +132,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 select * from t1 where a like "abc%";
 a
 abc
@@ -2553,10 +2557,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc
@@ -2951,10 +2959,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf16/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf16_uca                     [ fail ]
        Test ended at 2026-04-26 20:17:46

CURRENT_TEST: main.ctype_utf16_uca
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf16_uca.result	2026-04-24 13:53:12.057382317 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf16_uca.reject	2026-04-26 20:17:46.024687449 +0300
@@ -4008,7 +4008,9 @@
 ALTER TABLE t1 ADD KEY(c);
 EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	c	c	43	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 343.
 SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
 hex(c)	hex(weight_string(c))
 0061	120F

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf16_uca/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf16le                       [ fail ]
        Test ended at 2026-04-26 20:17:46

CURRENT_TEST: main.ctype_utf16le
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf16le.result	2026-04-24 13:53:12.057382317 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf16le.reject	2026-04-26 20:17:46.724703186 +0300
@@ -136,10 +136,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 select * from t1 where a like "abc%";
 a
 abc
@@ -2739,10 +2743,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc
@@ -3137,10 +3145,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf16le/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf32                         [ fail ]
        Test ended at 2026-04-26 20:17:47

CURRENT_TEST: main.ctype_utf32
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf32.result	2026-04-24 13:53:12.057382317 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf32.reject	2026-04-26 20:17:47.416718743 +0300
@@ -132,10 +132,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
 select * from t1 where a like "abc%";
 a
 abc
@@ -2609,10 +2613,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc
@@ -3007,10 +3015,14 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 explain select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	43	NULL	2	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: un-escaping error of ranges element at offset 381.
 select * from t1 where a like "abc%";
 a
 abc

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf32/'
main.ctype_utf32_not_embedded            [ pass ]    108
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf32_uca                     [ fail ]
        Test ended at 2026-04-26 20:17:48

CURRENT_TEST: main.ctype_utf32_uca
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf32_uca.result	2026-04-24 13:53:12.061382412 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf32_uca.reject	2026-04-26 20:17:48.436741672 +0300
@@ -4028,7 +4028,9 @@
 ALTER TABLE t1 ADD KEY(c);
 EXPLAIN SELECT hex(c) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	c	c	43	NULL	3	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 343.
 SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c;
 hex(c)	hex(weight_string(c))
 00000061	120F

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf32_uca/'
main.ctype_utf8_uca                      [ pass ]    421
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb3_bin                   [ pass ]     50
main.ctype_utf8mb3_geeral1400_as_ci      [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb3_general_ci            [ pass ]     53
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb3_uca1400_ai_ci         [ pass ]     51
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_bin                   [ pass ]     50
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_general_ci            [ pass ]     51
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_heap                  [ fail ]
        Test ended at 2026-04-26 20:17:50

CURRENT_TEST: main.ctype_utf8mb4_heap
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4_heap.result	2026-04-24 13:53:12.061382412 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4_heap.reject	2026-04-26 20:17:50.780794365 +0300
@@ -1614,7 +1614,9 @@
 1	SIMPLE	t1	ALL	a	NULL	NULL	NULL	12	Using where
 EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	53	const	4	Using where
+1	SIMPLE	t1	ref	a	a	53	const	2	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t2	ALL	a	NULL	NULL	NULL	12	Using where

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8mb4_heap/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_myisam                [ fail ]
        Test ended at 2026-04-26 20:17:51

CURRENT_TEST: main.ctype_utf8mb4_myisam
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4_myisam.result	2026-04-24 13:53:12.065382505 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/ctype_utf8mb4_myisam.reject	2026-04-26 20:17:51.516810909 +0300
@@ -1689,10 +1689,14 @@
 Kali Kali 2+4
 EXPLAIN SELECT a FROM t1 WHERE a LIKE 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	a	a	53	NULL	4	Using where; Using index
+1	SIMPLE	t1	range	a	a	53	NULL	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t1 WHERE a = 'Käli Käli 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	a	a	53	const	4	Using where; Using index
+1	SIMPLE	t1	ref	a	a	53	const	1	Using where; Using index
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Käli Käli 2+4) <= (a) <= (Käli Käli 2+4), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a
 EXPLAIN SELECT a FROM t2 WHERE a LIKE 'Kali Kali 2+4';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t2	range	a	a	14	NULL	4	Using where; Using index

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.ctype_utf8mb4_myisam/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_uca                   [ pass ]    576
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ctype_utf8mb4_uca1400_ai_ci         [ pass ]     50
main.ctype_utf8mb4_uca_allkeys1400       [ pass ]  12316
main.ctype_utf8mb4_uca_allkeys400        [ pass ]   4217
main.ctype_utf8mb4_uca_allkeys520        [ pass ]   6493
main.custom_aggregate_functions          [ pass ]    124
main.custom_aggregates_i_s               [ pass ]     12
ReplayTest: Loading context 
main.date_formats                        [ pass ]     22
main.datetime_456                        [ pass ]      2
main.ddl_i18n_koi8r                      [ pass ]    568
main.ddl_i18n_utf8                       [ pass ]    585
main.deadlock_ftwrl                      [ pass ]      8
main.default_debug                       [ pass ]      4
main.default_session                     [ pass ]     23
main.default_storage_engine              [ pass ]   1378
main.delayed                             [ pass ]   2346
main.delete_returning_grant              [ pass ]     11
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.delete_single_to_multi              [ fail ]
        Test ended at 2026-04-26 20:18:33

CURRENT_TEST: main.delete_single_to_multi
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/delete_single_to_multi.result	2026-04-24 13:53:12.069382599 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/delete_single_to_multi.reject	2026-04-26 20:18:33.693758697 +0300
@@ -373,8 +373,8 @@
 where n_name='PERU'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
-1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	
+1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	customer	ref	PRIMARY,i_c_nationkey	i_c_nationkey	5	dbt3_s001.nation.n_nationkey	6	
 1	PRIMARY	orders	ref|filter	PRIMARY,i_o_orderdate,i_o_custkey	i_o_custkey|i_o_orderdate	5|4	dbt3_s001.customer.c_custkey	15 (7%)	Using where; Using rowid filter
 1	PRIMARY	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
@@ -430,8 +430,8 @@
 where n_name='PERU'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
-1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	
+1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	customer	ref	PRIMARY,i_c_nationkey	i_c_nationkey	5	dbt3_s001.nation.n_nationkey	6	
 1	PRIMARY	orders	ref|filter	PRIMARY,i_o_orderdate,i_o_custkey	i_o_custkey|i_o_orderdate	5|4	dbt3_s001.customer.c_custkey	15 (7%)	Using where; Using rowid filter
 1	PRIMARY	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
@@ -3803,7 +3803,7 @@
               "loops": 1,
               "rows": 17,
               "cost": "COST_REPLACED",
-              "filtered": 79.54545593,
+              "filtered": 82.35294342,
               "attached_condition": "partsupp_small.ps_partkey is not null",
               "using_index": true
             }
@@ -3833,10 +3833,10 @@
               "key_length": "5",
               "used_key_parts": ["l_partkey"],
               "ref": ["dbt3_s001.partsupp_small.ps_partkey"],
-              "loops": 420.35,
+              "loops": 420,
               "rows": 30,
               "cost": "COST_REPLACED",
-              "filtered": 0.237896994,
+              "filtered": 0.238095239,
               "using_index": true
             }
           }
@@ -3907,7 +3907,7 @@
               "loops": 1,
               "rows": 17,
               "cost": "COST_REPLACED",
-              "filtered": 79.54545593,
+              "filtered": 82.35294342,
               "attached_condition": "partsupp_small.ps_partkey is not null",
               "using_index": true
             }
@@ -3937,10 +3937,10 @@
               "key_length": "5",
               "used_key_parts": ["l_partkey"],
               "ref": ["dbt3_s001.partsupp_small.ps_partkey"],
-              "loops": 420.35,
+              "loops": 420,
               "rows": 30,
               "cost": "COST_REPLACED",
-              "filtered": 0.237896994,
+              "filtered": 0.238095239,
               "using_index": true
             }
           }
@@ -4028,7 +4028,7 @@
               "loops": 1,
               "rows": 17,
               "cost": "COST_REPLACED",
-              "filtered": 79.54545593,
+              "filtered": 82.35294342,
               "attached_condition": "partsupp_small.ps_partkey is not null",
               "using_index": true
             }
@@ -4057,10 +4057,10 @@
               "key_length": "5",
               "used_key_parts": ["l_partkey"],
               "ref": ["dbt3_s001.partsupp_small.ps_partkey"],
-              "loops": 420.35,
+              "loops": 420,
               "rows": 30,
               "cost": "COST_REPLACED",
-              "filtered": 0.237896994,
+              "filtered": 0.238095239,
               "using_index": true
             }
           }

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.delete_single_to_multi/'
main.delimiter_command_case_sensitivity  [ pass ]     12
main.deprecated_features                 [ pass ]      1
main.dirty_close                         [ pass ]   1043
main.drop_combinations                   [ pass ]    178
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.dyncol                              [ pass ]     81
main.empty_server_name-8224              [ pass ]   1312
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.empty_string_literal                [ fail ]
        Test ended at 2026-04-26 20:18:37

CURRENT_TEST: main.empty_string_literal
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/empty_string_literal.result	2026-04-24 13:53:12.077382787 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/empty_string_literal.reject	2026-04-26 20:18:37.753849908 +0300
@@ -163,22 +163,22 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select NULL AS `NULL`
+Note	1003	select '' AS ``
 EXPLAIN EXTENDED SELECT _latin1'';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select NULL AS `NULL`
+Note	1003	select _latin1'' AS ``
 EXPLAIN EXTENDED SELECT N'';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select NULL AS `NULL`
+Note	1003	select '' AS ``
 EXPLAIN EXTENDED SELECT '' '';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
-Note	1003	select NULL AS `NULL`
+Note	1003	select '' AS ``
 #
 # MDEV-20763 Table corruption or Assertion `btr_validate_index(index, 0, false)' failed in row_upd_sec_index_entry with virtual column and EMPTY_STRING_IS_NULL SQL mode
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.empty_string_literal/'
ReplayTest: Loading context 
ReplayTest: Loading context 
main.empty_table                         [ pass ]     56
main.empty_user_table                    [ pass ]     14
main.engine_error_in_alter-8453          [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.except                              [ pass ]     62
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.except_all                          [ pass ]     77
main.execution_constants                 [ pass ]    219
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: Invalid utf8mb4 character string: '\xD4\xC1\xC2'
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/explain.test"
ReplayTest: At line 41
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
ReplayTest: Failed query was: explain replace into t2 select 100, (select a from t1)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.explain                             [ fail ]
        Test ended at 2026-04-26 20:18:40

CURRENT_TEST: main.explain
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/explain.result	2026-04-24 13:53:12.081382880 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/explain.reject	2026-04-26 20:18:40.125903192 +0300
@@ -49,8 +49,7 @@
 insert into  (0) values (1);
 insert into  (0) values (2);
 explain select 0 from  where 0=1;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE		ref	0,01	0	5	const	1	Using index
+ReplayTest: Query error: Invalid utf8mb4 character string: '\xD4\xC1\xC2'
 drop table ;
 set names latin1;
 select 3 into @v1;
@@ -409,9 +408,7 @@
 create table t2 (b int, c int);
 replace into t2 select 100, (select a from t1);
 explain replace into t2 select 100, (select a from t1);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-2	SUBQUERY	t1	system	NULL	NULL	NULL	NULL	1	
+ReplayTest: Direct EXPLAIN failed on replay server: 1136 Column count doesn't match value count at row 1
 drop table t1, t2;
 # End of 10.1 tests
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.explain/'
main.failed_auth_3909                    [ pass ]   3015
main.features 'nm'                       [ pass ]     25
main.filesort_bad_i_s-7585               [ pass ]     78
main.filesort_debug                      [ pass ]     12
main.filesort_pack                       [ pass ]      5
main.fix_priv_tables                     [ pass ]    448
main.flush                               [ pass ]   4187
main.flush_logs_not_windows              [ pass ]      3
main.flush_notembedded                   [ pass ]     12
main.flush_ssl                           [ pass ]   2677
main.flush_table                         [ pass ]   4036
main.frm-debug                           [ pass ]     24
main.frm_bad_row_type-7333               [ pass ]      3
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.fulltext                            [ fail ]
        Test ended at 2026-04-26 20:18:57

CURRENT_TEST: main.fulltext
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/fulltext.result	2026-04-24 13:53:12.081382880 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/fulltext.reject	2026-04-26 20:18:57.578295181 +0300
@@ -764,7 +764,7 @@
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
 2	SUBQUERY	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	/* select#1 */ select <expr_cache><'foo'>(<in_optimizer>('foo',<exists>(/* select#2 */ select `test`.`t1`.`f` from `test`.`t1` where <cache>(convert('foo' using utf8mb4)) = `test`.`t1`.`f` or `test`.`t1`.`f` is null having `test`.`t1`.`f` is null))) AS `f1`,(match `test`.`t1`.`f` against ('qux' in boolean mode)) AS `f2` from `test`.`t1`
+Note	1003	/* select#1 */ select <expr_cache><'foo'>(<in_optimizer>('foo',<exists>(/* select#2 */ select `test`.`t1`.`f` from `test`.`t1` where 'foo' = `test`.`t1`.`f` or `test`.`t1`.`f` is null having `test`.`t1`.`f` is null))) AS `f1`,(match `test`.`t1`.`f` against ('qux' in boolean mode)) AS `f2` from `test`.`t1`
 drop table t1;
 #
 # End of 5.5 tests

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.fulltext/'
main.fulltext2                           [ pass ]    355
main.fulltext3                           [ pass ]      7
main.fulltext_cache                      [ pass ]      5
main.fulltext_charsets                   [ pass ]      2
main.fulltext_derived_4257               [ pass ]      2
main.fulltext_derived_4316               [ pass ]      2
main.fulltext_distinct                   [ pass ]      5
main.fulltext_left_join                  [ pass ]     15
main.fulltext_multi                      [ pass ]      3
ReplayTest: Loading context 
main.fulltext_order_by                   [ pass ]     16
main.fulltext_update                     [ pass ]      2
main.fulltext_var                        [ pass ]      4
main.func_bit                            [ pass ]     15
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_compress                       [ pass ]    427
ReplayTest: Loading context 
main.func_concat                         [ pass ]     33
ReplayTest: Loading context 
main.func_crypt                          [ pass ]     19
main.func_date_add                       [ pass ]     14
ReplayTest: Loading context 
main.func_debug                          [ pass ]     90
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_default                        [ pass ]     30
main.func_des_encrypt                    [ pass ]      5
main.func_digest                         [ pass ]     39
main.func_encrypt_nossl                  [ skipped ]  Test requires: embedded server
main.func_encrypt_ucs2                   [ pass ]      4
main.func_equal                          [ pass ]      6
main.func_extract                        [ pass ]    140
main.func_format                         [ pass ]     11
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_group                          [ fail ]
        Test ended at 2026-04-26 20:19:04

CURRENT_TEST: main.func_group
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/func_group.result	2026-04-24 13:53:12.089383068 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/func_group.reject	2026-04-26 20:19:04.070440976 +0300
@@ -1985,8 +1985,8 @@
 SELECT v
 FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
+2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where
 Warnings:
 Warning	1292	Truncated incorrect DOUBLE value: 'j'
 Warning	1292	Truncated incorrect DOUBLE value: 'j'
@@ -2013,8 +2013,8 @@
 SELECT v
 FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No matching min/max row
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
+2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where
 
 #
 # 3) Test that subquery materialization is setup for query with
@@ -2037,8 +2037,8 @@
 SELECT v
 FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
+2	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where
 
 #
 # 4) Test that subquery materialization is setup for query with
@@ -2062,8 +2062,8 @@
 SELECT v
 FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived2>	system	NULL	NULL	NULL	NULL	0	Const row not found
-3	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
+3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where
 2	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
 set optimizer_switch=@tmp_optimizer_switch;
 
@@ -2089,8 +2089,8 @@
 SELECT v
 FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	t1	index	NULL	PRIMARY	4	NULL	2	Using where; Using index
-3	MATERIALIZED	t2	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible HAVING
+3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using where
 2	MATERIALIZED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 set @@optimizer_switch=@save_optimizer_switch;
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.func_group/'
main.func_hybrid_type                    [ pass ]    287
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_if                             [ pass ]     23
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_in                             [ pass ]   1347
main.func_int                            [ pass ]      6
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_isnull                         [ pass ]     40
main.func_json_notembedded               [ pass ]     33
main.func_kdf 'new'                      [ pass ]     20
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_like                           [ fail ]
        Test ended at 2026-04-26 20:19:07

CURRENT_TEST: main.func_like
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/func_like.result	2026-04-24 13:53:12.089383068 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/func_like.reject	2026-04-26 20:19:07.346514543 +0300
@@ -3,14 +3,16 @@
 insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
 explain extended select * from t1 where a like 'abc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	range	a	a	13	NULL	2	100.00	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` like 'abc%'
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
+Note	1003	select NULL AS `a` from `test`.`t1` where 0
 explain extended select * from t1 where a like concat('abc','%');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	range	a	a	13	NULL	2	100.00	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` like <cache>(concat('abc','%'))
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 342.
+Note	1003	select NULL AS `a` from `test`.`t1` where 0
 select * from t1 where a like "abc%";
 a
 abc

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.func_like/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_math                           [ pass ]    383
main.func_numconv                        [ pass ]     47
main.func_numconv_debug                  [ pass ]      3
main.func_numconv_format                 [ pass ]  14268
main.func_numconv_ucs2                   [ pass ]      5
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_op                             [ pass ]      6
ReplayTest: Loading context 
main.func_regexp                         [ pass ]     20
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_regexp_pcre                    [ pass ]     29
main.func_regexp_pcre_debug              [ pass ]       
main.func_replace                        [ pass ]     11
main.func_sapdb                          [ pass ]     10
ReplayTest: Loading context 
main.func_set                            [ pass ]     14
main.func_sformat                        [ pass ]     21
ReplayTest: Loading context 
main.func_system                         [ pass ]      8
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_test                           [ pass ]     46
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_time                           [ pass ]   8238
main.func_time_32                        [ skipped ]  Need a 32 bit timestamps
main.func_time_64                        [ pass ]     11
ReplayTest: Loading context 
main.func_time_hires                     [ pass ]     13
main.func_time_round                     [ pass ]     36
main.func_timestamp                      [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.func_weight_string                  [ pass ]     25
main.function_defaults                   [ pass ]    268
main.function_defaults_notembedded       [ pass ]     24
main.gcc296                              [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '\0\0\0\0\0001\0001\0\0\0\0\0\0\0\0\0??\0\0\0\0\0\0\0@)' at line 2
ReplayTest: In included file "./include/gis_keys.inc":
ReplayTest: included from /optane/dev-git2/13.0-context-replay/mysql-test/main/gis.test at line 677:
ReplayTest: At line 22
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.gis                                 [ fail ]
        Test ended at 2026-04-26 20:19:36

CURRENT_TEST: main.gis
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/gis.result	2026-04-24 13:53:12.101383350 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/gis.reject	2026-04-26 20:19:36.111160339 +0300
@@ -963,8 +963,7 @@
 1
 EXPLAIN 
 SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	system	p	NULL	NULL	NULL	1	
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '\0\0\0\0\0001\0001\0\0\0\0\0\0\0\0\0??\0\0\0\0\0\0\0@)' at line 2
 SELECT COUNT(*) FROM t2 WHERE p=POINTFROMTEXT('POINT(1 2)');
 COUNT(*)
 1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.gis/'
main.gis-debug                           [ pass ]     90
main.gis-json                            [ pass ]      4
main.gis-loaddata                        [ pass ]      4
main.gis-precise                         [ pass ]   7973
ReplayTest: Loading context 
ReplayTest: Loading context 
main.gis-rt-precise                      [ pass ]     50
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.gis-rtree                           [ pass ]    192
main.gis_notembedded                     [ pass ]      9
main.grant5                              [ pass ]     80
main.grant_4332                          [ pass ]     45
main.grant_binlog_replay                 [ pass ]      5
main.grant_cache_no_prot                 [ pass ]     37
main.grant_cache_ps_prot                 [ skipped ]  Need ps-protocol
ReplayTest: Loading context 
ReplayTest: Direct EXPLAIN failed on replay server: 4078 Cannot cast 'int' as 'geometry' in assignment of `test`.`t1`.`a`
ReplayTest: Failed query was: EXPLAIN INSERT INTO t1 VALUES (10)
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.grant_explain_non_select            [ fail ]
        Test ended at 2026-04-26 20:19:47

CURRENT_TEST: main.grant_explain_non_select
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/grant_explain_non_select.result	2026-04-24 13:53:12.101383350 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/grant_explain_non_select.reject	2026-04-26 20:19:47.003404825 +0300
@@ -21,8 +21,7 @@
 GRANT INSERT ON privtest_db.t1 TO 'privtest'@'localhost';
 connection con1;
 EXPLAIN INSERT INTO t1 VALUES (10);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	INSERT	t1	ALL	NULL	NULL	NULL	NULL	NULL	NULL
+ReplayTest: Direct EXPLAIN failed on replay server: 4078 Cannot cast 'int' as 'geometry' in assignment of `test`.`t1`.`a`
 INSERT INTO t1 VALUES (10);
 EXPLAIN INSERT INTO t1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
@@ -71,7 +70,7 @@
 REPLACE INTO t1 VALUES (10);
 EXPLAIN REPLACE INTO t1 SELECT * FROM t2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	3	
+1	SIMPLE	t2	system	NULL	NULL	NULL	NULL	0	Const row not found
 REPLACE INTO t1 SELECT * FROM t2;
 connection default;
 REVOKE ALL PRIVILEGES ON privtest_db.t1 FROM 'privtest'@'localhost';

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.grant_explain_non_select/'
main.grant_kill                          [ pass ]      9
main.grant_lowercase_fs                  [ skipped ]  Test requires: 'case_insensitive_fs'
main.grant_master_admin                  [ pass ]      5
main.grant_plugin                        [ pass ]      4
main.grant_read_only                     [ pass ]     10
main.grant_repair                        [ pass ]     44
main.grant_server                        [ pass ]      9
main.grant_slave_admin                   [ pass ]      5
main.grant_slave_monitor                 [ pass ]     10
main.grant_utf8_cli                      [ pass ]     14
main.group_by_null                       [ pass ]      2
main.handler_read_last                   [ pass ]      5
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.next_seq_value does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
main.having                              [ fail ]
        Test ended at 2026-04-26 20:19:49

CURRENT_TEST: main.having
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/having.result	2026-04-24 13:53:12.105383443 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/having.reject	2026-04-26 20:19:49.607463270 +0300
@@ -833,8 +833,7 @@
 test.t1	analyze	status	Engine-independent statistics collected
 test.t1	analyze	status	OK
 explain SELECT t, next_seq_value() r FROM t1 FORCE INDEX(t) GROUP BY t HAVING r = 1  ORDER BY t1.u;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index	NULL	t	5	NULL	8	Using temporary; Using filesort
+ReplayTest: Query error: FUNCTION test.next_seq_value does not exist
 SELECT t, next_seq_value() r FROM t1 FORCE INDEX(t) GROUP BY t HAVING r = 1  ORDER BY t1.u;
 t	r
 10	1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.having/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.having_cond_pushdown                [ fail ]
        Test ended at 2026-04-26 20:19:51

CURRENT_TEST: main.having_cond_pushdown
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/having_cond_pushdown.result	2026-04-24 13:53:12.105383443 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/having_cond_pushdown.reject	2026-04-26 20:19:50.931492986 +0300
@@ -939,38 +939,12 @@
 FROM t1
 GROUP BY t1.a
 HAVING (t1.a>1) AND (a=test.f1());
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	5	Using where; Using temporary; Using filesort
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 explain format=json SELECT t1.a,MAX(t1.b)
 FROM t1
 GROUP BY t1.a
 HAVING (t1.a>1) AND (a=test.f1());
-EXPLAIN
-{
-  "query_block": {
-    "select_id": 1,
-    "cost": "COST_REPLACED",
-    "having_condition": "t1.a = test.f1()",
-    "filesort": {
-      "sort_key": "t1.a",
-      "temporary_table": {
-        "nested_loop": [
-          {
-            "table": {
-              "table_name": "t1",
-              "access_type": "ALL",
-              "loops": 1,
-              "rows": 5,
-              "cost": "COST_REPLACED",
-              "filtered": 100,
-              "attached_condition": "t1.a > 1"
-            }
-          }
-        ]
-      }
-    }
-  }
-}
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 set statement optimizer_switch='condition_pushdown_from_having=off' for explain format=json SELECT t1.a,MAX(t1.b)
 FROM t1
 WHERE (t1.a>1)
@@ -5946,20 +5920,9 @@
 {
   "query_block": {
     "select_id": 1,
-    "cost": "COST_REPLACED",
-    "nested_loop": [
-      {
-        "table": {
-          "table_name": "t1",
-          "access_type": "ALL",
-          "loops": 1,
-          "rows": 7,
-          "cost": "COST_REPLACED",
-          "filtered": 100,
-          "attached_condition": "t1.a = (subquery#2)"
-        }
-      }
-    ],
+    "table": {
+      "message": "Impossible WHERE"
+    },
     "subqueries": [
       {
         "query_block": {
@@ -6051,45 +6014,29 @@
 {
   "query_block": {
     "select_id": 1,
-    "cost": "COST_REPLACED",
-    "filesort": {
-      "sort_key": "t1.b, t1.c",
-      "temporary_table": {
-        "nested_loop": [
-          {
-            "table": {
-              "table_name": "t1",
-              "access_type": "ALL",
-              "loops": 1,
-              "rows": 2,
-              "cost": "COST_REPLACED",
-              "filtered": 100,
-              "attached_condition": "t1.a = (subquery#2) and (t1.b = (subquery#2) or t1.c = (subquery#2))"
-            }
-          }
-        ],
-        "subqueries": [
-          {
-            "query_block": {
-              "select_id": 2,
-              "cost": "COST_REPLACED",
-              "nested_loop": [
-                {
-                  "table": {
-                    "table_name": "t1",
-                    "access_type": "ALL",
-                    "loops": 1,
-                    "rows": 2,
-                    "cost": "COST_REPLACED",
-                    "filtered": 100
-                  }
-                }
-              ]
+    "table": {
+      "message": "Impossible WHERE"
+    },
+    "subqueries": [
+      {
+        "query_block": {
+          "select_id": 2,
+          "cost": "COST_REPLACED",
+          "nested_loop": [
+            {
+              "table": {
+                "table_name": "t1",
+                "access_type": "ALL",
+                "loops": 1,
+                "rows": 2,
+                "cost": "COST_REPLACED",
+                "filtered": 100
+              }
             }
-          }
-        ]
+          ]
+        }
       }
-    }
+    ]
   }
 }
 SELECT a,b,c FROM t1 GROUP BY a,b,c
@@ -6102,45 +6049,29 @@
 {
   "query_block": {
     "select_id": 1,
-    "cost": "COST_REPLACED",
-    "filesort": {
-      "sort_key": "t1.b",
-      "temporary_table": {
-        "nested_loop": [
-          {
-            "table": {
-              "table_name": "t1",
-              "access_type": "ALL",
-              "loops": 1,
-              "rows": 2,
-              "cost": "COST_REPLACED",
-              "filtered": 100,
-              "attached_condition": "t1.a = (subquery#2) and (1 or (subquery#2) > t1.b)"
-            }
-          }
-        ],
-        "subqueries": [
-          {
-            "query_block": {
-              "select_id": 2,
-              "cost": "COST_REPLACED",
-              "nested_loop": [
-                {
-                  "table": {
-                    "table_name": "t1",
-                    "access_type": "ALL",
-                    "loops": 1,
-                    "rows": 2,
-                    "cost": "COST_REPLACED",
-                    "filtered": 100
-                  }
-                }
-              ]
+    "table": {
+      "message": "Impossible WHERE"
+    },
+    "subqueries": [
+      {
+        "query_block": {
+          "select_id": 2,
+          "cost": "COST_REPLACED",
+          "nested_loop": [
+            {
+              "table": {
+                "table_name": "t1",
+                "access_type": "ALL",
+                "loops": 1,
+                "rows": 2,
+                "cost": "COST_REPLACED",
+                "filtered": 100
+              }
             }
-          }
-        ]
+          ]
+        }
       }
-    }
+    ]
   }
 }
 SELECT a FROM t1 GROUP BY a,b

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.having_cond_pushdown/'
main.help                                [ pass ]    109
main.identifier                          [ pass ]     10
main.implicit_char_to_num_conversion     [ pass ]     22
main.in_datetime_241                     [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.in_subq_cond_pushdown               [ pass ]    416
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.index_intersect                     [ fail ]
        Test ended at 2026-04-26 20:19:53

CURRENT_TEST: main.index_intersect
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/index_intersect.result	2026-04-24 13:53:12.109383538 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/index_intersect.reject	2026-04-26 20:19:53.659554213 +0300
@@ -65,22 +65,30 @@
 SELECT * FROM City WHERE
 Name LIKE 'C%' AND Population > 1000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Name,Population	35,4	NULL	#	Using sort_intersect(Name,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1220.
 EXPLAIN
 SELECT * FROM City WHERE
 Name LIKE 'M%' AND Population > 1500000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1220.
 EXPLAIN
 SELECT * FROM City 
 WHERE Name LIKE 'M%' AND Population > 300000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Name	Name	35	NULL	#	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1220.
 EXPLAIN
 SELECT * FROM City
 WHERE Name LIKE 'M%' AND Population > 7000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Name	Population	4	NULL	#	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1219.
 SELECT * FROM City USE INDEX ()
 WHERE Name LIKE 'C%' AND Population > 1000000;
 ID	Name	Country	Population
@@ -362,17 +370,23 @@
 SELECT * FROM City
 WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Name,Population	35,4	NULL	#	Using sort_intersect(Name,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1210.
 EXPLAIN
 SELECT * FROM City 
 WHERE Name BETWEEN 'G' AND 'K' AND Population > 1000000 AND Country LIKE 'J%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Population,Country	4,3	NULL	#	Using sort_intersect(Population,Country); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1210.
 EXPLAIN
 SELECT * FROM City 
 WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name,Country	Name,Country	#	NULL	#	Using sort_intersect(Name,Country); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	#	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1207.
 SELECT * FROM City USE INDEX ()
 WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%';
 ID	Name	Country	Population
@@ -463,17 +477,23 @@
 SELECT * FROM City
 WHERE ID BETWEEN 501 AND 1000 AND Population > 700000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country	Population,PRIMARY	4,4	NULL	#	Using sort_intersect(Population,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1773.
 EXPLAIN
 SELECT * FROM City
 WHERE ID BETWEEN 1 AND 500 AND Population > 700000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country	Population,PRIMARY	4,4	NULL	#	Using sort_intersect(Population,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1770.
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 2001 AND 2500 AND Population > 300000 AND Country LIKE 'H%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	PRIMARY,Population,Country	Country	3	NULL	#	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1775.
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 3701 AND 4000 AND Population > 1000000
@@ -697,27 +717,37 @@
 SELECT * FROM City WHERE
 Name LIKE 'C%' AND Population > 1000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Name,Population	35,4	NULL	#	Using sort_intersect(Name,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1220.
 EXPLAIN
 SELECT * FROM City WHERE
 Name LIKE 'M%' AND Population > 1500000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name	Population,Name	4,35	NULL	#	Using sort_intersect(Population,Name); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1220.
 EXPLAIN
 SELECT * FROM City 
 WHERE  Name BETWEEN 'G' AND 'K' AND Population > 1000000 AND Country LIKE 'J%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Country,Name	Population,Country	4,3	NULL	#	Using sort_intersect(Population,Country); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1210.
 EXPLAIN
 SELECT * FROM City 
 WHERE  Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Country,Name	Name	35	NULL	#	Using index condition; Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1207.
 EXPLAIN
 SELECT * FROM City
 WHERE ID BETWEEN 1 AND 500 AND Population > 700000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	PRIMARY,Population,Country	Population,PRIMARY	4,4	NULL	#	Using sort_intersect(Population,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1770.
 EXPLAIN
 SELECT * FROM City 
 WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000
@@ -852,7 +882,9 @@
 SELECT * FROM City 
 WHERE Country LIKE 'M%' AND Population > 1000000;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,CountryID,CountryName	Population,CountryID	4,3	NULL	#	Using sort_intersect(Population,CountryID); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1326.
 EXPLAIN
 SELECT * FROM City 
 WHERE Country='USA' AND Population > 1000000;
@@ -862,7 +894,9 @@
 SELECT * FROM City 
 WHERE Country='USA' AND Population > 1500000 AND Name LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name,CountryID,CountryName	CountryName,Population	38,4	NULL	#	Using sort_intersect(CountryName,Population); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1334.
 SELECT * FROM City USE INDEX ()
 WHERE Country LIKE 'M%' AND Population > 1000000;
 ID	Name	Country	Population
@@ -934,8 +968,15 @@
 WHERE City.Name LIKE 'C%' AND City.Population > 1000000 AND
 Country.Code=City.Country;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	index_merge	Population,Name,CountryID,CountryName	Name,Population	35,4	NULL	#	Using sort_intersect(Name,Population); Using where
-1	SIMPLE	Country	eq_ref	PRIMARY	PRIMARY	3	world.City.Country	#	
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 2095.
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City doesn't exist in list of table contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.PRIMARY doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.Population doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.Name doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.CountryID doesn't exist in list of index contexts
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: world.City.CountryName doesn't exist in list of index contexts
 DROP DATABASE world;
 use test;
 CREATE TABLE t1 (
@@ -963,7 +1004,9 @@
 SELECT * FROM t1
 WHERE (f1 < 535  OR  f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	index_merge	PRIMARY,f4	f4,PRIMARY	35,4	NULL	#	Using sort_intersect(f4,PRIMARY); Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1012.
 SELECT * FROM t1
 WHERE (f1 < 535  OR  f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
 f1	f4	f5

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.index_intersect/'
main.information_schema2                 [ pass ]     72
main.information_schema_chmod            [ pass ]      2
main.information_schema_columns          [ pass ]      4
main.information_schema_linux            [ pass ]      1
main.information_schema_parameters       [ pass ]     37
main.information_schema_prepare          [ pass ]      2
main.information_schema_routines         [ pass ]     42
main.information_schema_stats            [ pass ]     13
main.init_file_set_password-7656         [ pass ]   1313
main.insert                              [ pass ]    996
main.insert_notembedded                  [ pass ]     26
main.insert_returning_datatypes          [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.insert_select                       [ pass ]    324
ReplayTest: Loading context 
ReplayTest: Loading context 
main.insert_update                       [ pass ]   2066
main.insert_update_autoinc-7150          [ pass ]      1
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.intersect                           [ pass ]   3158
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"i3" (
  "x" int(11) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/intersect_all.test"
ReplayTest: At line 340
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t2" (
  "a" int(11) DEFAULT NULL,
  "b" int(11) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/intersect_all.test"
ReplayTest: At line 419
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t2" (
  "a" int(11) DEFAULT NULL,
  "b" int(11) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/intersect_all.test"
ReplayTest: At line 473
main.intersect_all                       [ fail ]
        Test ended at 2026-04-26 20:20:11

CURRENT_TEST: main.intersect_all
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/intersect_all.result	2026-04-24 13:55:48.337039154 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/intersect_all.reject	2026-04-26 20:20:11.723959585 +0300
@@ -1093,14 +1093,9 @@
 NULL	UNION RESULT	<union1,4>	ALL	NULL	NULL	NULL	NULL	NULL	
 set sql_mode= 'oracle';
 explain SELECT * from t3 union select * from u3 intersect all select * from i3;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived4>	ALL	NULL	NULL	NULL	NULL	2	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	2	
-2	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
-3	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
-NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	
-5	INTERSECT	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
-NULL	INTERSECT RESULT	<intersect4,5>	ALL	NULL	NULL	NULL	NULL	NULL	
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"i3" (
+  "x" int(11) DEFAULT NULL
+)' at line 1
 select x from t3 union select x from u3 intersect select x from i3;
 x
 SELECT x from t3 union select x from u3 intersect all select x from i3;
@@ -1223,14 +1218,10 @@
 1	2
 2	3
 explain select * from t1 intersect all select * from t2 union values (1, 2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived4>	ALL	NULL	NULL	NULL	NULL	8	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	7	
-2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	7	
-3	INTERSECT	t2	ALL	NULL	NULL	NULL	NULL	7	
-NULL	INTERSECT RESULT	<intersect2,3>	ALL	NULL	NULL	NULL	NULL	NULL	
-5	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-NULL	UNION RESULT	<union4,5>	ALL	NULL	NULL	NULL	NULL	NULL	
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t2" (
+  "a" int(11) DEFAULT NULL,
+  "b" int(11) DEFAULT NULL
+)' at line 1
 show create view v1;
 View	Create View	character_set_client	collation_connection
 v1	CREATE VIEW "v1" AS select "__6"."a" AS "a","__6"."b" AS "b" from (select "__4"."a" AS "a","__4"."b" AS "b" from (select "t1"."a" AS "a","t1"."b" AS "b" from "t1" intersect all select "t2"."a" AS "a","t2"."b" AS "b" from "t2") "__4" union values (1,2)) "__6"	latin1	latin1_swedish_ci
@@ -1332,14 +1323,10 @@
 1	2
 drop view v2;
 EXPLAIN select * from t1 except all select * from t2 intersect all values (1, 2);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived4>	ALL	NULL	NULL	NULL	NULL	2	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	4	
-2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	4	
-3	EXCEPT	t2	ALL	NULL	NULL	NULL	NULL	2	
-NULL	EXCEPT RESULT	<except2,3>	ALL	NULL	NULL	NULL	NULL	NULL	
-5	INTERSECT	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-NULL	INTERSECT RESULT	<intersect4,5>	ALL	NULL	NULL	NULL	NULL	NULL	
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t2" (
+  "a" int(11) DEFAULT NULL,
+  "b" int(11) DEFAULT NULL
+)' at line 1
 select * from t2 union all select * from t2;
 a	b
 1	2

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.intersect_all/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.invisible_field                     [ pass ]    148
ReplayTest: Loading context 
ReplayTest: Query error: Unknown column 'invisible' in 'WHERE'
ReplayTest: Loading context 
ReplayTest: Query error: Unknown column 'invisible' in 'WHERE'
ReplayTest: Loading context 
ReplayTest: Query error: Unknown column 'invisible' in 'WHERE'
main.invisible_field_debug               [ fail ]
        Test ended at 2026-04-26 20:20:12

CURRENT_TEST: main.invisible_field_debug
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/invisible_field_debug.result	2026-04-24 13:53:12.117383726 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/invisible_field_debug.reject	2026-04-26 20:20:12.555978254 +0300
@@ -345,8 +345,7 @@
 9	6	6
 9	7	7
 explain select * from t1 where invisible =9;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	invisible	invisible	5	const	7	
+ReplayTest: Query error: Unknown column 'invisible' in 'WHERE'
 alter table t1 add x int default 3;
 select invisible, a ,b from t1;
 invisible	a	b
@@ -367,12 +366,10 @@
 drop index invisible on t1;
 ERROR 42000: Can't DROP INDEX `invisible`; check that it exists
 explain select * from t1 where invisible =9;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	invisible	invisible	5	const	7	
+ReplayTest: Query error: Unknown column 'invisible' in 'WHERE'
 create index invisible on t1(c);
 explain select * from t1 where invisible =9;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	invisible_2	invisible_2	5	const	7	
+ReplayTest: Query error: Unknown column 'invisible' in 'WHERE'
 show indexes in t1;
 Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	Comment	Index_comment	Ignored
 t1	1	b	1	b	A	NULL	NULL	NULL	YES	BTREE			NO

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.invisible_field_debug/'
main.invisible_field_grant_completely    [ pass ]     68
main.invisible_field_grant_system        [ pass ]      7
main.item_types                          [ pass ]      9
main.join_crash                          [ pass ]      8
main.json_debug_nonembedded              [ pass ]      1
main.json_equals                         [ pass ]     13
main.json_normalize                      [ pass ]      8
ReplayTest: Loading context 
main.key_diff                            [ pass ]      6
main.key_primary                         [ pass ]      3
main.keywords                            [ pass ]    112
main.kill_processlist-6619               [ pass ]      5
main.kill_query-6728                     [ pass ]      2
main.last_value                          [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.limit                               [ pass ]     20
main.loaddata                            [ pass ]    121
main.loadxml                             [ pass ]   3266
main.lock_multi                          [ pass ]   7165
main.lock_multi_bug38499                 [ pass ]   1627
main.lock_multi_bug38691                 [ pass ]    825
main.lock_user                           [ pass ]   1043
main.lock_view                           [ pass ]     78
main.log_crash                           [ pass ]   1435
main.log_errchk                          [ pass ]   1332
main.log_slow                            [ pass ]   1608
main.log_slow_always_query_time          [ pass ]   3014
main.log_tables_debug                    [ pass ]      4
main.long_host                           [ pass ]     92
main.long_unique_bugs_no_sp_protocol     [ pass ]      9
main.long_unique_debug                   [ pass ]     15
main.long_unique_delayed                 [ pass ]      4
main.long_unique_update                  [ pass ]     24
main.long_unique_using_hash              [ pass ]      5
main.lotofstack                          [ pass ]    244
main.lowercase_fs_off                    [ pass ]    715
main.lowercase_fs_on                     [ skipped ]  Test requires: 'case_insensitive_file_system'
main.lowercase_table5                    [ pass ]     28
main.max_password_errors                 [ pass ]   3045
main.mdev-34724                          [ pass ]     61
main.mdev19198                           [ pass ]      2
main.mdev316                             [ pass ]      1
main.mdev375                             [ pass ]      7
main.mdev6830                            [ pass ]      6
main.mdev_14586                          [ pass ]      8
main.mdev_19276                          [ pass ]      8
main.mdev_22370                          [ pass ]   2417
main.memory_used                         [ pass ]      3
main.metadata                            [ pass ]     25
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.mix2_myisam                         [ fail ]
        Test ended at 2026-04-26 20:20:50

CURRENT_TEST: main.mix2_myisam
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/mix2_myisam.result	2026-04-24 13:53:12.133384101 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/mix2_myisam.reject	2026-04-26 20:20:50.744834957 +0300
@@ -1542,7 +1542,9 @@
 1	SIMPLE	t1	ref	t	t	13	const	#	Using where
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	13	NULL	#	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 504.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	13	const	#	Using where; Using index
@@ -1738,7 +1740,9 @@
 1	SIMPLE	t1	ref	v	v	303	const	#	Using where; Using index
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	303	NULL	#	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 520.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	303	const	#	Using where; Using index
@@ -1818,7 +1822,9 @@
 1	SIMPLE	t1	ref	v	v	33	const	#	Using where
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	33	NULL	#	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 520.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	33	const	#	Using where

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.mix2_myisam/'
main.mix2_myisam_ucs2                    [ pass ]     65
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.mrr_icp_extra                       [ fail ]
        Test ended at 2026-04-26 20:20:53

CURRENT_TEST: main.mrr_icp_extra
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/mrr_icp_extra.result	2026-04-24 13:53:12.133384101 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/mrr_icp_extra.reject	2026-04-26 20:20:53.816903859 +0300
@@ -26,37 +26,21 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	s2	s2	11	const	1	Using index condition
 EXPLAIN SELECT * FROM t1 WHERE s1='a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ref	s1	s1	11	const	1	Using index condition
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2='a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` = "'a' collate latin1_german1_ci" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s1 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	s1	s1	11	NULL	2	Using index condition; Rowid-ordered scan
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2 BETWEEN 'a' AND 'b' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` >= "'a'" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s1 IN  ('a','b' COLLATE latin1_german1_ci);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	s1	s1	11	NULL	2	Using index condition; Rowid-ordered scan
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2 IN  ('a','b' COLLATE latin1_german1_ci);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` = "'a'" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s1 LIKE 'a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	s1	s1	11	NULL	1	Using index condition; Rowid-ordered scan
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 EXPLAIN SELECT * FROM t1 WHERE s2 LIKE 'a' COLLATE latin1_german1_ci;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	ALL	s2	NULL	NULL	NULL	10	Using where
-Warnings:
-Note	1105	Cannot use key `s2` part[0] for lookup: `test`.`t1`.`s2` of collation `latin1_swedish_ci` like "'a' collate latin1_german1_ci" of collation `latin1_german1_ci`
+ReplayTest: Query error: COLLATION 'latin1_german1_ci' is not valid for CHARACTER SET 'utf8mb4'
 DROP TABLE t1;
 #
 #
@@ -212,7 +196,9 @@
 SELECT * FROM t1
 WHERE (f1 < 535  OR  f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	PRIMARY,f4	f4	35	NULL	5	Using index condition; Using where; Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1012.
 SELECT * FROM t1
 WHERE (f1 < 535  OR  f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ;
 f1	f4	f5
@@ -351,7 +337,9 @@
 1	SIMPLE	t1	ref	t	t	13	const	#	Using where
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	13	NULL	#	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 504.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	13	const	#	Using where; Using index
@@ -547,7 +535,9 @@
 1	SIMPLE	t1	ref	v	v	303	const	#	Using where; Using index
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	303	NULL	#	Using where; Using index
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 520.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	303	const	#	Using where; Using index
@@ -627,7 +617,9 @@
 1	SIMPLE	t1	ref	v	v	33	const	#	Using where
 explain select count(*) from t1 where v like 'a%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	range	v	v	33	NULL	#	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 520.
 explain select count(*) from t1 where v between 'a' and 'a ';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	v	v	33	const	#	Using where
@@ -871,7 +863,9 @@
 SELECT * FROM City 
 WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Country	#	#	NULL	#	Using index condition; Using where; Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	#	#	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1123.
 SELECT * FROM City 
 WHERE Name BETWEEN 'G' AND 'K' AND Population > 500000 AND Country LIKE 'C%';
 ID	Name	Country	Population
@@ -891,7 +885,9 @@
 SELECT * FROM City 
 WHERE  Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	City	range	Population,Country	#	#	NULL	#	Using index condition; Using where; Rowid-ordered scan
+1	SIMPLE	NULL	NULL	NULL	#	#	NULL	#	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 1123.
 SELECT * FROM City 
 WHERE  Name BETWEEN 'G' AND 'J' AND Population > 500000 AND Country LIKE 'C%';
 ID	Name	Country	Population

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.mrr_icp_extra/'
main.multi_update_debug                  [ pass ]     49
main.my_print_defaults                   [ pass ]     14
main.myisam-system                       [ pass ]      5
main.myisam_debug                        [ pass ]    145
main.myisam_debug_keys                   [ pass ]    414
main.myisam_enable_keys-10506            [ pass ]      6
ReplayTest: Loading context 
main.myisam_icp_debug                    [ pass ]     17
main.myisam_icp_notembedded              [ pass ]    106
ReplayTest: Loading context 
main.myisam_optimize                     [ pass ]    102
main.myisampack                          [ pass ]    575
main.mysql                               [ pass ]   2421
main.mysql-bug41486                      [ pass ]    131
main.mysql-bug45236                      [ pass ]     64
main.mysql-interactive                   [ pass ]     39
main.mysql-metadata                      [ pass ]     23
main.mysql5613mysql                      [ pass ]     15
main.mysql57_virtual                     [ pass ]      4
main.mysql_comments                      [ pass ]     45
main.mysql_connector_net                 [ skipped ]  Need windows
main.mysql_cp932                         [ pass ]     80
main.mysql_install_db_win                [ skipped ]  Need windows
main.mysql_install_db_win_utf8           [ skipped ]  Need windows
main.mysql_locale_posix                  [ skipped ]  Need POSIX locale de_DE.iso88591
main.mysql_not_windows                   [ pass ]     66
main.mysql_protocols                     [ pass ]     39
main.mysql_upgrade_file_leak             [ pass ]     19
main.mysql_upgrade_mysql_json            [ pass ]   2663
main.mysql_upgrade_mysql_json_system_tables [ pass ]    606
main.mysql_upgrade_no_innodb             [ pass ]    544
main.mysqladmin                          [ pass ]   3943
main.mysqld--defaults-file               [ pass ]    208
main.mysqld--help 'unix'                 [ pass ]     89
main.mysqld--help-aria                   [ pass ]    276
main.mysqld_help_crash-9183              [ pass ]     87
worker[01] Trying to dump core for [mysqltest - pid: 11355, winpid: 11355]
worker[01] Trying to dump core for [mysqld.1 - pid: 11259, winpid: 11259]
main.mysqld_option_err                   [ fail ]  timeout after 900 seconds
        Test ended at 2026-04-26 20:37:35

Test case timeout after 900 seconds

== /optane/dev-git2/13.0-context-replay/mysql-test/var/log/mysqld_option_err.log == 
Test that unknown option is not silently ignored.
Test bad binlog format.
Test bad default storage engine.
Test non-numeric value passed to number option.
Test that bad value for plugin enum option is rejected correctly.

 == /optane/dev-git2/13.0-context-replay/mysql-test/var/tmp/analyze-timeout-mysqld.1.err ==
mysqltest: Could not open connection 'default' after 500 attempts: 2002 Can't connect to local server through socket '/optane/dev-git2/13.0-context-replay/mysql-test/var/tmp/mysqld.1' (111)

mysqltest failed but provided no output
The result from queries just before the failure was:
< snip >
Test that unknown option is not silently ignored.
Test bad binlog format.
Test bad default storage engine.
Test non-numeric value passed to number option.
Test that bad value for plugin enum option is rejected correctly.


 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.mysqld_option_err/'
***Warnings generated in error logs during shutdown after running tests: main.mysqld--help-aria main.mysqld--help main.mysqld--defaults-file main.mysqld_help_crash-9183 main.mysqladmin main.mysqld_option_err

260426 20:36:33 [ERROR] /optane/dev-git2/13.0-context-replay/sql/mariadbd got signal 6 ;
Attempting backtrace. Include this in the bug report.

main.mysqldump-header                    [ pass ]    292
main.mysqldump-nl                        [ pass ]     82
main.mysqldump-timing                    [ pass ]   1087
main.mysqldump-utf8mb4                   [ pass ]     71
main.mysqlhotcopy_myisam                 [ skipped ]  Test needs Perl modules DBI and DBD::MariaDB
main.mysqlshow                           [ pass ]     48
main.mysqltest-break                     [ pass ]      4
main.mysqltest_256                       [ pass ]      1
main.mysqltest_cont_on_error             [ pass ]      7
main.mysqltest_ps                        [ skipped ]  Need ps-protocol
main.mysqltest_tracking_info             [ pass ]      5
main.mysqltest_tracking_info_debug       [ pass ]      1
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.name_const_replacement              [ pass ]     17
main.name_resolution_cache_debug         [ pass ]      5
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.negation_elimination                [ pass ]    106
main.nested_profiling                    [ pass ]      4
main.no_binlog                           [ pass ]      1
main.non_blocking_api                    [ pass ]      3
main.not_embedded_server                 [ pass ]     28
main.not_partition                       [ skipped ]  Test requires no partitioning
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.null                                [ pass ]    158
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.null_key                            [ fail ]
        Test ended at 2026-04-26 20:37:41

CURRENT_TEST: main.null_key
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/null_key.result	2026-04-24 13:53:12.153384570 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/null_key.reject	2026-04-26 20:37:41.323569546 +0300
@@ -80,24 +80,44 @@
 explain select * from t1 where a is null and b = 2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a,b	a	5	const	3	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` = "2" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` = "2" of type `int`
 explain select * from t1 where a is null and b = 2 and c=0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a,b	a	5	const	3	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` = "2" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` = "2" of type `int`
 explain select * from t1 where a is null and b = 7 and c=0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a,b	a	5	const	3	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` = "7" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` = "7" of type `int`
 explain select * from t1 where a=2 and b = 2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a,b	a	5	const	1	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` = "2" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` = "2" of type `int`
 explain select * from t1 where a<=>b limit 2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	12	Using where
 explain select * from t1 where (a is null or a > 0 and a < 3) and b < 5 and c=0 limit 3;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	a,b	a	5	NULL	5	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` < "5" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` < "5" of type `int`
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` < "5" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` < "5" of type `int`
 explain select * from t1 where (a is null or a = 7) and b=7 and c=0;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref_or_null	a,b	a	5	const	4	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` = "7" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` = "7" of type `int`
 explain select * from t1 where (a is null and b>a) or a is null and b=7 limit 2;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	ref	a,b	a	5	const	3	Using where
@@ -110,12 +130,17 @@
 explain select * from t1 where a is null and b=7 or a > 1 and a < 3 limit 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	a,b	a	5	NULL	4	Using where
+Warnings:
+Note	1105	Cannot use key `a` part[1] for lookup: `test`.`t1`.`b` of type `blob` = "7" of type `int`
+Note	1105	Cannot use key `b` part[0] for lookup: `test`.`t1`.`b` of type `blob` = "7" of type `int`
 explain select * from t1 where a > 8 and a < 9;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	a	a	5	NULL	1	Using where
 explain select * from t1 where b like "6%";
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	SIMPLE	t1	range	b	b	12	NULL	1	Using where
+Warnings:
+Warning	4254	Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(6) <= (b) <= (6\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ] doesn't exist in the list of ranges for table_name test.t1 and index_name b
 select * from t1 where a is null;
 a	b	c
 NULL	7	0

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.null_key/'
ReplayTest: Loading context 
main.odbc                                [ pass ]     40
ReplayTest: Loading context 
ReplayTest: Loading context 
main.olap                                [ pass ]     83
main.openssl_1                           [ pass ]    299
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hint_rowid_filter               [ pass ]    243
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_index                     [ pass ]    411
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_join_cache                [ pass ]   1169
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.opt_hints_subquery                  [ fail ]
        Test ended at 2026-04-26 20:37:46

CURRENT_TEST: main.opt_hints_subquery
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/opt_hints_subquery.result	2026-04-24 13:53:12.157384664 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/opt_hints_subquery.reject	2026-04-26 20:37:45.867671936 +0300
@@ -632,7 +632,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Forcing the default strategy should not change anything
@@ -643,7 +643,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` LOOSESCAN) SEMIJOIN(@`subq2` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Forcing a strategy for one, may change the other due to cost changes
@@ -654,7 +654,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t3)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t3)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Forcing same strategy for both
@@ -665,7 +665,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t3)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t3)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) SEMIJOIN(@`subq2` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Loosescan for both is not possible,  ends up with DuplicateWeedout
@@ -676,7 +676,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` LOOSESCAN) SEMIJOIN(@`subq2` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Swap strategies compared to default
@@ -687,7 +687,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) SEMIJOIN(@`subq2` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Different subsets of strategies for different subqueries
@@ -699,7 +699,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH, LOOSESCAN) SEMIJOIN(@`subq2` MATERIALIZATION, DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Vice versa
@@ -711,7 +711,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; Start temporary
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where; End temporary
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` MATERIALIZATION, DUPSWEEDOUT) SEMIJOIN(@`subq2` FIRSTMATCH, LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Another combination
@@ -723,7 +723,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` MATERIALIZATION, FIRSTMATCH) SEMIJOIN(@`subq2` LOOSESCAN, DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Turn off default
@@ -735,7 +735,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ NO_SEMIJOIN(@`subq1` LOOSESCAN) NO_SEMIJOIN(@`subq2` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Also turn off 2nd choice. Gives DuplicateWeedout over both
@@ -747,7 +747,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; Start temporary
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where; End temporary
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ NO_SEMIJOIN(@`subq1` LOOSESCAN, FIRSTMATCH) NO_SEMIJOIN(@`subq2` FIRSTMATCH, LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Also turn off DuplicateWeedout.  Materialization is only one left.
@@ -786,7 +786,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 2	MATERIALIZED	t3	index	a	a	4	NULL	4	100.00	Using index
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` MATERIALIZATION) SEMIJOIN(@`subq2` DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t2`.`a` = `test`.`t1`.`b`
@@ -798,7 +798,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch((sj-nest))
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch((sj-nest))
 2	MATERIALIZED	t3	index	a	a	4	NULL	4	100.00	Using index
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` MATERIALIZATION) SEMIJOIN(@`subq2` LOOSESCAN, FIRSTMATCH, DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t2`.`a` = `test`.`t1`.`b`
@@ -810,7 +810,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t3`.`a` = `test`.`t1`.`a`
 # Let's turn off FirtMatch, DuplicateWeedout is then chosen
@@ -821,7 +821,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	ALL	a	NULL	NULL	NULL	4	100.00	Using where; Start temporary
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	100.00	
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	16.67	Using index; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	25.00	Using index; End temporary
 Warnings:
 Note	1003	select /*+ NO_SEMIJOIN(@`subq1` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t1`.`a` = `test`.`t3`.`a`
 # If we turn off all strategies, DuplicateWeedout should still be used
@@ -844,7 +844,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t3`.`a` = `test`.`t1`.`a`
 # Force LooseScan, will fall back to DuplicateWeedout
@@ -855,7 +855,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	ALL	a	NULL	NULL	NULL	4	100.00	Using where; Start temporary
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	100.00	
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	16.67	Using index; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	25.00	Using index; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t1`.`a` = `test`.`t3`.`a`
 # Force DuplicateWeedout
@@ -866,7 +866,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	ALL	a	NULL	NULL	NULL	4	100.00	Using where; Start temporary
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	100.00	
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	16.67	Using index; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	25.00	Using index; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t1`.`a` = `test`.`t3`.`a`
 # If FirstMatch is among candidates, it will be used
@@ -877,7 +877,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH, DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t3`.`a` = `test`.`t1`.`a`
 EXPLAIN EXTENDED
@@ -888,7 +888,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t3.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` MATERIALIZATION, FIRSTMATCH, LOOSESCAN, DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t2` join `test`.`t3`) where `test`.`t2`.`a` = `test`.`t3`.`b` and `test`.`t3`.`a` = `test`.`t1`.`a`
 # Test hints with prepared statements
@@ -1184,7 +1184,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; Start temporary
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where; End temporary
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Allowing LooseScan and FirstMatch and optimizer_switch is ignored
@@ -1196,7 +1196,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` LOOSESCAN, FIRSTMATCH) SEMIJOIN(@`subq2` LOOSESCAN, FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Forcing a disabled strategy for one
@@ -1207,7 +1207,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Forcing same strategy for both
@@ -1218,7 +1218,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t3)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t3)
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) SEMIJOIN(@`subq2` FIRSTMATCH) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Swap strategies compared to default
@@ -1229,7 +1229,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH) SEMIJOIN(@`subq2` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Different subsets of strategies for different subqueries
@@ -1241,7 +1241,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Note	1003	select /*+ SEMIJOIN(@`subq1` FIRSTMATCH, LOOSESCAN) SEMIJOIN(@`subq2` MATERIALIZATION, DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
 # Turn off DuplicateWeedout for both.  Materialization is left
@@ -1280,7 +1280,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	<subquery2>	eq_ref	distinct_key	distinct_key	4	func	1	100.00	
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 2	MATERIALIZED	t3	index	a	a	4	NULL	4	100.00	Using index
 Warnings:
 Note	1003	select /*+ NO_SEMIJOIN(@`subq1` DUPSWEEDOUT) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t2`.`a` = `test`.`t1`.`b`
@@ -1492,7 +1492,7 @@
 AND t1.b IN (SELECT /*+ QB_NAME(subq2) SEMIJOIN(LOOSESCAN) */ a FROM t2);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 2	DEPENDENT SUBQUERY	t3	index_subquery	a	a	4	func	1	100.00	Using index
 Warnings:
 Warning	4219	Hint SEMIJOIN(@`subq1` LOOSESCAN) is ignored as conflicting/duplicated
@@ -1505,7 +1505,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; Start temporary; End temporary
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; Start temporary; End temporary
 Warnings:
 Warning	4219	Hint SEMIJOIN(@`subq1` LOOSESCAN) is ignored as conflicting/duplicated
 Warning	4219	Hint SEMIJOIN(@`subq2` FIRSTMATCH) is ignored as conflicting/duplicated
@@ -1518,7 +1518,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Warning	4219	Hint SEMIJOIN(@`subq1` FIRSTMATCH) is ignored as conflicting/duplicated
 Note	1003	select /*+ SEMIJOIN(@`subq1` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
@@ -1530,7 +1530,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Warning	4219	Hint NO_SEMIJOIN(@`subq1` LOOSESCAN) is ignored as conflicting/duplicated
 Note	1003	select /*+ SEMIJOIN(@`subq1` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t3`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
@@ -1542,7 +1542,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t1	ALL	PRIMARY	NULL	NULL	NULL	4	100.00	Using where
 1	PRIMARY	t3	ref	a	a	4	test.t1.a	1	100.00	Using index; FirstMatch(t1)
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t3)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t3)
 Warnings:
 Warning	4219	Hint NO_SEMIJOIN(@`subq1` FIRSTMATCH) is ignored as conflicting/duplicated
 Note	1003	select /*+ NO_SEMIJOIN(@`subq1` LOOSESCAN) */ `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` semi join (`test`.`t3`) semi join (`test`.`t2`) where `test`.`t3`.`a` = `test`.`t1`.`a` and `test`.`t2`.`a` = `test`.`t1`.`b`
@@ -1555,7 +1555,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	PRIMARY	t3	index	a	a	4	NULL	4	100.00	Using index; LooseScan
 1	PRIMARY	t1	eq_ref	PRIMARY	PRIMARY	4	test.t3.a	1	25.00	Using where
-1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	66.67	Using index; FirstMatch(t1)
+1	PRIMARY	t2	ref	a	a	4	test.t1.b	1	100.00	Using index; FirstMatch(t1)
 Warnings:
 Warning	1064	Optimizer hint syntax error near 'INTOEXISTS) NO_SEMIJOIN(@subq2 INTOEXISTS) */ *
 FROM t1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.opt_hints_subquery/'
main.opt_trace_default                   [ pass ]      1
main.opt_trace_index_merge               [ pass ]   1502
main.opt_trace_security                  [ pass ]     31
main.opt_trace_ucs2                      [ pass ]      4
main.order_by-mdev-10122                 [ pass ]     13
ReplayTest: Loading context 
ReplayTest: Loading context 
main.order_by_optimizer                  [ pass ]     25
main.order_by_sortkey                    [ pass ]    761
ReplayTest: Loading context 
main.order_by_zerolength-4285            [ pass ]      8
main.order_fill_sortbuf                  [ pass ]    350
ReplayTest: Loading context 
main.outfile                             [ pass ]     13
main.outfile_loaddata                    [ pass ]     33
main.overflow                            [ pass ]      1
main.packet                              [ pass ]      3
ReplayTest: Loading context 
ReplayTest: Loading context 
main.parser                              [ pass ]    229
main.parser_not_embedded                 [ pass ]     16
main.parser_stack                        [ pass ]   1429
main.password_expiration                 [ pass ]     66
main.perror                              [ pass ]      9
main.perror-win                          [ skipped ]  Need windows
main.plugin_vars                         [ pass ]    954
main.precedence                          [ pass ]   1227
ReplayTest: Loading context 
main.precedence_bugs                     [ pass ]      9
main.preload                             [ pass ]   2487
main.prepare                             [ pass ]     17
main.processlist                         [ pass ]   5030
main.processlist_notembedded             [ pass ]   5019
main.profiling                           [ pass ]     83
main.ps_10nestset                        [ pass ]      7
ReplayTest: Loading context 
main.ps_11bugs                           [ pass ]     29
main.ps_1general                         [ pass ]    307
main.ps_2myisam                          [ pass ]    170
main.ps_4heap                            [ pass ]    165
main.ps_5merge                           [ pass ]    361
main.ps_ddl                              [ pass ]    457
main.ps_ddl1                             [ pass ]     78
main.ps_error                            [ pass ]   1439
main.ps_grant                            [ pass ]     11
main.ps_max_subselect-5113               [ pass ]      2
main.ps_not_windows                      [ pass ]      3
main.public_basic                        [ pass ]     20
main.public_privileges                   [ pass ]     56
main.query_cache_28249                   [ pass ]     12
main.query_cache_merge                   [ pass ]    784
main.query_cache_ps_no_prot              [ pass ]     53
main.query_cache_ps_ps_prot              [ skipped ]  Test requires: ps-protocol enabled, other protocols disabled
main.query_cache_with_views              [ pass ]     34
main.quick_select_4161                   [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
main.range_aria_dbt3                     [ pass ]   1968
main.range_debug                         [ pass ]     34
main.read_only                           [ pass ]     41
main.rename                              [ pass ]     26
main.renamedb                            [ pass ]      1
main.repair_symlink-5543                 [ pass ]      7
main.replace                             [ pass ]      6
main.replace_returning                   [ pass ]     20
main.replace_returning_datatypes         [ pass ]      3
main.replace_returning_err               [ pass ]      6
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.replay_server_test                  [ fail ]
        Test ended at 2026-04-26 20:38:21

CURRENT_TEST: main.replay_server_test
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/replay_server_test.result	2026-04-24 15:51:57.263241299 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/replay_server_test.reject	2026-04-26 20:38:21.404472426 +0300
@@ -1,4 +1,11 @@
-REPLAY_SERVER_SOCKET is NOT set
+REPLAY_SERVER_SOCKET is set: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock
+Checking socket: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1/mysqld.sock
+Socket exists: YES
+Is socket: YES
+Replay server PID: 26694
+Process running: YES
+Socket directory: /optane/dev-git2/13.0-context-replay/mysql-test/var/extra_server_1
+Files in socket dir: mysqld.pid, mysqld.sock, data
 CREATE TABLE t1 (a INT, b INT, KEY(a));
 INSERT INTO t1 VALUES (1,1), (2,2), (3,3);
 analyze table t1;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.replay_server_test/'
main.reset_connection                    [ pass ]      4
main.rollback                            [ pass ]      2
main.round                               [ pass ]     19
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.row                                 [ pass ]     85
main.rowid_filter                        [ pass ]   1025
main.rowid_filter_aria                   [ pass ]   2624
main.schema                              [ pass ]     14
ReplayTest: Loading context 
main.second_frac-9175                    [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.select 'nm'                         [ fail ]
        Test ended at 2026-04-26 20:38:30

CURRENT_TEST: main.select
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/select.result	2026-04-24 13:53:12.189385414 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/select.reject	2026-04-26 20:38:30.248671586 +0300
@@ -3908,7 +3908,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 name	LENGTH(name)	n
 cc   	5	3
@@ -3917,7 +3919,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 name	LENGTH(name)	n
 cc 	4	4
@@ -4001,7 +4005,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 name	LENGTH(name)	n
 cc   	5	3
@@ -4010,7 +4016,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 name	LENGTH(name)	n
 cc 	4	4
@@ -4150,7 +4158,6 @@
 Note	1003	select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
 SHOW WARNINGS;
 Level	Code	Message
-Note	1003	select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
 DROP TABLE t1;
 SELECT 1 AS ` `;
 
@@ -4906,10 +4913,7 @@
 @cnt
 1
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = f1();
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(`f1`())
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 DROP TABLE t1, t2;
 DROP FUNCTION f1;
 # End of bug#33546
@@ -5703,7 +5707,7 @@
 SELECT * FROM t1 WHERE a = 1 AND
 (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where; Using temporary
+1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
 Note	1276	Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.select-nm/'
ReplayTest: Loading context 
main.select_debug                        [ pass ]     28
ReplayTest: Loading context 
ReplayTest: Query error: Invalid default value for 'kid'
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/select_found.test"
ReplayTest: At line 76
main.select_found                        [ fail ]
        Test ended at 2026-04-26 20:38:31

CURRENT_TEST: main.select_found
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/select_found.result	2026-04-24 13:53:12.193385508 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/select_found.reject	2026-04-26 20:38:30.924686808 +0300
@@ -82,9 +82,7 @@
 UNIQUE KEY e_n (email,name)
 );
 EXPLAIN SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1  ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1	system	PRIMARY,kid	NULL	NULL	NULL	0	Const row not found; Using temporary
-1	SIMPLE	t2	ALL	NULL	NULL	NULL	NULL	200	
+ReplayTest: Query error: Invalid default value for 'kid'
 SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1  ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
 email
 email1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.select_found/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Query error: FUNCTION test.f1 does not exist
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.select_jcl6 'nm'                    [ fail ]
        Test ended at 2026-04-26 20:38:35

CURRENT_TEST: main.select_jcl6
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/select_jcl6.result	2026-04-24 13:53:12.193385508 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/select_jcl6.reject	2026-04-26 20:38:34.820774534 +0300
@@ -3920,7 +3920,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 name	LENGTH(name)	n
 cc   	5	3
@@ -3929,7 +3931,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 name	LENGTH(name)	n
 cc 	4	4
@@ -4013,7 +4017,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%';
 name	LENGTH(name)	n
 cc   	5	3
@@ -4022,7 +4028,9 @@
 cc 	3	7
 EXPLAIN SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t2	range	name	name	6	NULL	4	Using where; Using filesort
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+Warnings:
+Warning	4253	Failed to parse saved optimizer context: error reading ranges value at offset 348.
 SELECT name , LENGTH(name), n FROM t2 WHERE name LIKE 'cc%' ORDER BY name;
 name	LENGTH(name)	n
 cc 	4	4
@@ -4162,7 +4170,6 @@
 Note	1003	select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
 SHOW WARNINGS;
 Level	Code	Message
-Note	1003	select NULL AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by NULL,NULL,NULL,NULL,NULL
 DROP TABLE t1;
 SELECT 1 AS ` `;
 
@@ -4918,10 +4925,7 @@
 @cnt
 1
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = f1();
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	10	100.00	Using where
-Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(`f1`())
+ReplayTest: Query error: FUNCTION test.f1 does not exist
 DROP TABLE t1, t2;
 DROP FUNCTION f1;
 # End of bug#33546
@@ -5715,7 +5719,7 @@
 SELECT * FROM t1 WHERE a = 1 AND
 (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where; Using temporary
+1	PRIMARY	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 3	DEPENDENT SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
 Warnings:
 Note	1276	Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.select_jcl6-nm/'
ReplayTest: Loading context 
ReplayTest: Loading context 
main.select_safe                         [ pass ]     66
main.sequence_debug                      [ pass ]      3
main.servers_upgrade                     [ pass ]   1468
main.session_user                        [ pass ]      8
main.set_authorization                   [ pass ]   1439
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.set_operation                       [ pass ]    171
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t3" (
  "e" int(11) DEFAULT NULL,
  "f" blob(65535) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.test"
ReplayTest: At line 12
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t1" (
  "a" int(11) DEFAULT NULL,
  "b" blob(65535) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.test"
ReplayTest: At line 17
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t3" (
  "e" int(11) DEFAULT NULL,
  "f" blob(65535) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.test"
ReplayTest: At line 53
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t3" (
  "e" int(11) DEFAULT NULL,
  "f" blob(65535) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.test"
ReplayTest: At line 57
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t1" (
  "a" int(11) DEFAULT NULL,
  "b" blob(65535) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.test"
ReplayTest: At line 62
ReplayTest: Loading context 
ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t1" (
  "a" int(11) DEFAULT NULL,
  "b" blob(65535) DEFAULT NULL
)' at line 1
ReplayTest: In file "/optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.test"
ReplayTest: At line 66
main.set_operation_oracle                [ fail ]
        Test ended at 2026-04-26 20:38:39

CURRENT_TEST: main.set_operation_oracle
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.result	2026-04-24 13:55:48.357039621 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/set_operation_oracle.reject	2026-04-26 20:38:39.724884946 +0300
@@ -11,19 +11,10 @@
 4	4
 explain extended
 (select a,b from t1) union (select c,d from t2) intersect (select e,f from t3) union (select 4,4);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived6>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-6	DERIVED	<derived4>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
-3	UNION	t2	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	UNION RESULT	<union2,3>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-5	INTERSECT	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	INTERSECT RESULT	<intersect4,5>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-7	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-NULL	UNION RESULT	<union6,7>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-Warnings:
-Note	1003	/* select#1 */ select "__7"."a" AS "a","__7"."b" AS "b" from (/* select#6 */ select "__5"."a" AS "a","__5"."b" AS "b" from (/* select#4 */ select "__3"."a" AS "a","__3"."b" AS "b" from ((/* select#2 */ select "test"."t1"."a" AS "a","test"."t1"."b" AS "b" from "test"."t1") union (/* select#3 */ select "test"."t2"."c" AS "c","test"."t2"."d" AS "d" from "test"."t2")) "__3" intersect (/* select#5 */ select "test"."t3"."e" AS "e","test"."t3"."f" AS "f" from "test"."t3")) "__5" union (/* select#7 */ select 4 AS "4",4 AS "4")) "__7"
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t3" (
+  "e" int(11) DEFAULT NULL,
+  "f" blob(65535) DEFAULT NULL
+)' at line 1
 (select e,f from t3) intersect (select c,d from t2) union (select a,b from t1) union (select 4,4);
 e	f
 3	3
@@ -32,19 +23,10 @@
 4	4
 explain extended
 (select e,f from t3) intersect (select c,d from t2) union (select a,b from t1) union (select 4,4);
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived6>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-6	DERIVED	<derived4>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-2	DERIVED	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	
-3	INTERSECT	t2	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	INTERSECT RESULT	<intersect2,3>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-5	UNION	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	UNION RESULT	<union4,5>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-7	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-NULL	UNION RESULT	<union6,7>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-Warnings:
-Note	1003	/* select#1 */ select "__7"."e" AS "e","__7"."f" AS "f" from (/* select#6 */ select "__5"."e" AS "e","__5"."f" AS "f" from (/* select#4 */ select "__3"."e" AS "e","__3"."f" AS "f" from ((/* select#2 */ select "test"."t3"."e" AS "e","test"."t3"."f" AS "f" from "test"."t3") intersect (/* select#3 */ select "test"."t2"."c" AS "c","test"."t2"."d" AS "d" from "test"."t2")) "__3" union (/* select#5 */ select "test"."t1"."a" AS "a","test"."t1"."b" AS "b" from "test"."t1")) "__5" union (/* select#7 */ select 4 AS "4",4 AS "4")) "__7"
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t1" (
+  "a" int(11) DEFAULT NULL,
+  "b" blob(65535) DEFAULT NULL
+)' at line 1
 create table t12(c1 int);
 insert into t12 values(1);
 insert into t12 values(2);
@@ -75,34 +57,20 @@
 4	4
 explain extended
 select a,b from t1 union all select c,d from t2 intersect select e,f from t3 union all select 4,'4' from dual;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived6>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-6	DERIVED	<derived4>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
-3	UNION	t2	ALL	NULL	NULL	NULL	NULL	2	100.00	
-5	INTERSECT	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	INTERSECT RESULT	<intersect4,5>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-7	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-Warnings:
-Note	1003	/* select#1 */ select "__7"."a" AS "a","__7"."b" AS "b" from (/* select#6 */ select "__5"."a" AS "a","__5"."b" AS "b" from (/* select#4 */ select "__3"."a" AS "a","__3"."b" AS "b" from (/* select#2 */ select "test"."t1"."a" AS "a","test"."t1"."b" AS "b" from "test"."t1" union all /* select#3 */ select "test"."t2"."c" AS "c","test"."t2"."d" AS "d" from "test"."t2") "__3" intersect /* select#5 */ select "test"."t3"."e" AS "e","test"."t3"."f" AS "f" from "test"."t3") "__5" union all /* select#7 */ select 4 AS "4",'4' AS "4") "__7"
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t3" (
+  "e" int(11) DEFAULT NULL,
+  "f" blob(65535) DEFAULT NULL
+)' at line 1
 select a,b from t1 union all select c,d from t2 intersect all select e,f from t3 union all select 4,'4' from dual;
 a	b
 3	3
 4	4
 explain extended
 select a,b from t1 union all select c,d from t2 intersect all select e,f from t3 union all select 4,'4' from dual;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived6>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-6	DERIVED	<derived4>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-2	DERIVED	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
-3	UNION	t2	ALL	NULL	NULL	NULL	NULL	2	100.00	
-5	INTERSECT	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	INTERSECT RESULT	<intersect4,5>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-7	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-Warnings:
-Note	1003	/* select#1 */ select "__7"."a" AS "a","__7"."b" AS "b" from (/* select#6 */ select "__5"."a" AS "a","__5"."b" AS "b" from (/* select#4 */ select "__3"."a" AS "a","__3"."b" AS "b" from (/* select#2 */ select "test"."t1"."a" AS "a","test"."t1"."b" AS "b" from "test"."t1" union all /* select#3 */ select "test"."t2"."c" AS "c","test"."t2"."d" AS "d" from "test"."t2") "__3" intersect all /* select#5 */ select "test"."t3"."e" AS "e","test"."t3"."f" AS "f" from "test"."t3") "__5" union all /* select#7 */ select 4 AS "4",'4' AS "4") "__7"
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t3" (
+  "e" int(11) DEFAULT NULL,
+  "f" blob(65535) DEFAULT NULL
+)' at line 1
 select e,f from t3 intersect select c,d from t2 union all select a,b from t1 union all select 4,'4' from dual;
 e	f
 3	3
@@ -111,17 +79,10 @@
 4	4
 explain extended
 select e,f from t3 intersect select c,d from t2 union all select a,b from t1 union all select 4,'4' from dual;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived6>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-6	DERIVED	<derived4>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-2	DERIVED	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	
-3	INTERSECT	t2	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	INTERSECT RESULT	<intersect2,3>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-5	UNION	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
-7	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-Warnings:
-Note	1003	/* select#1 */ select "__7"."e" AS "e","__7"."f" AS "f" from (/* select#6 */ select "__5"."e" AS "e","__5"."f" AS "f" from (/* select#4 */ select "__3"."e" AS "e","__3"."f" AS "f" from (/* select#2 */ select "test"."t3"."e" AS "e","test"."t3"."f" AS "f" from "test"."t3" intersect /* select#3 */ select "test"."t2"."c" AS "c","test"."t2"."d" AS "d" from "test"."t2") "__3" union all /* select#5 */ select "test"."t1"."a" AS "a","test"."t1"."b" AS "b" from "test"."t1") "__5" union all /* select#7 */ select 4 AS "4",'4' AS "4") "__7"
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t1" (
+  "a" int(11) DEFAULT NULL,
+  "b" blob(65535) DEFAULT NULL
+)' at line 1
 select e,f from t3 intersect all select c,d from t2 union all select a,b from t1 union all select 4,'4' from dual;
 e	f
 3	3
@@ -130,17 +91,10 @@
 4	4
 explain extended
 select e,f from t3 intersect all select c,d from t2 union all select a,b from t1 union all select 4,'4' from dual;
-id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	PRIMARY	<derived6>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-6	DERIVED	<derived4>	ALL	NULL	NULL	NULL	NULL	4	100.00	
-4	DERIVED	<derived2>	ALL	NULL	NULL	NULL	NULL	2	100.00	
-2	DERIVED	t3	ALL	NULL	NULL	NULL	NULL	2	100.00	
-3	INTERSECT	t2	ALL	NULL	NULL	NULL	NULL	2	100.00	
-NULL	INTERSECT RESULT	<intersect2,3>	ALL	NULL	NULL	NULL	NULL	NULL	NULL	
-5	UNION	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	
-7	UNION	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
-Warnings:
-Note	1003	/* select#1 */ select "__7"."e" AS "e","__7"."f" AS "f" from (/* select#6 */ select "__5"."e" AS "e","__5"."f" AS "f" from (/* select#4 */ select "__3"."e" AS "e","__3"."f" AS "f" from (/* select#2 */ select "test"."t3"."e" AS "e","test"."t3"."f" AS "f" from "test"."t3" intersect all /* select#3 */ select "test"."t2"."c" AS "c","test"."t2"."d" AS "d" from "test"."t2") "__3" union all /* select#5 */ select "test"."t1"."a" AS "a","test"."t1"."b" AS "b" from "test"."t1") "__5" union all /* select#7 */ select 4 AS "4",'4' AS "4") "__7"
+ReplayTest: Query error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '"t1" (
+  "a" int(11) DEFAULT NULL,
+  "b" blob(65535) DEFAULT NULL
+)' at line 1
 set SQL_MODE=default;
 drop table t1,t2,t3;
 set SQL_MODE=oracle;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.set_operation_oracle/'
main.set_password                        [ pass ]     87
ReplayTest: Loading context 
main.set_statement                       [ pass ]    937
main.set_statement_debug                 [ pass ]      5
main.set_statement_notembedded           [ pass ]   2009
main.set_statement_profiling             [ pass ]      1
main.show                                [ pass ]     20
main.show_bad_definer-5553               [ pass ]      3
main.show_create_user                    [ pass ]      6
main.show_explain_ps                     [ pass ]     46
main.show_function_with_pad_char_to_full_length [ pass ]      5
main.show_profile                        [ pass ]      2
main.show_row_order-9226                 [ pass ]      3
main.shutdown                            [ pass ]    323
main.sighup-6580                         [ pass ]      2
main.signal                              [ pass ]    171
main.signal_code                         [ pass ]      3
main.signal_demo1                        [ pass ]     19
main.signal_demo2                        [ pass ]     17
main.signal_demo3                        [ pass ]     12
main.signal_sqlmode                      [ pass ]      8
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.single_delete_update                [ pass ]    706
main.skip_slave_start                    [ pass ]   1443
main.slowlog_integrity                   [ pass ]     77
main.sp-anchor-row-type-cursor           [ pass ]    107
main.sp-anchor-row-type-table            [ pass ]    105
main.sp-anchor-type                      [ pass ]    126
main.sp-bugs                             [ pass ]     73
main.sp-bugs2                            [ pass ]     24
main.sp-code                             [ pass ]     66
main.sp-condition-handler                [ pass ]    436
main.sp-cursor                           [ pass ]   2302
main.sp-default-param                    [ pass ]     49
main.sp-destruct                         [ pass ]     70
main.sp-dynamic                          [ pass ]     49
main.sp-error                            [ pass ]    234
main.sp-expr                             [ pass ]     11
main.sp-fib                              [ pass ]      5
main.sp-for-loop                         [ pass ]     17
main.sp-i_s_columns                      [ pass ]    490
main.sp-inout                            [ pass ]    160
main.sp-lock                             [ pass ]    302
main.sp-memory-leak                      [ pass ]      1
main.sp-no-code                          [ skipped ]  Does not run with debug binaries
main.sp-no-valgrind                      [ pass ]      6
main.sp-package                          [ pass ]     20
main.sp-package-code                     [ pass ]     22
main.sp-package-security                 [ pass ]     29
main.sp-prelocking                       [ pass ]     66
main.sp-security                         [ pass ]    303
main.sp-security-anchor-type             [ pass ]     25
main.sp-security-debug                   [ pass ]     40
main.sp-sys_refcursor                    [ pass ]     56
main.sp-threads                          [ pass ]     22
main.sp-ucs2                             [ pass ]     21
main.sp-vars                             [ pass ]    118
main.sp2                                 [ pass ]     72
main.sp_gis                              [ pass ]     14
main.sp_missing_4665                     [ pass ]      2
main.sp_notembedded                      [ pass ]     50
main.sp_stress_case                      [ pass ]   7316
main.sp_sync                             [ pass ]     15
main.sp_validation                       [ pass ]    435
main.spatial_testing_functions_coveredby [ pass ]     41
main.spatial_utility_function_geohash    [ pass ]     58
main.spatial_utility_function_isvalid    [ pass ]     18
main.spatial_utility_function_simplify   [ pass ]     22
main.spatial_utility_function_validate   [ pass ]      5
main.sql_mode                            [ pass ]     51
main.sql_mode_pad_char_to_full_length    [ pass ]     11
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ssl                                 [ pass ]   7095
main.ssl_ca                              [ pass ]     20
main.ssl_cipher_tlsv13                   [ pass ]     19
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.ssl_compress                        [ pass ]   7078
main.ssl_connect                         [ pass ]    901
main.ssl_crl_clients                     [ pass ]     46
main.ssl_fp                              [ pass ]     29
main.ssl_system_ca 'good'                [ pass ]     12
main.ssl_timeout                         [ pass ]   5263
main.stack                               [ pass ]     11
main.stack-crash                         [ pass ]      6
main.start_slave_until                   [ pass ]      2
main.stat_tables-enospc                  [ pass ]   1131
main.stat_tables_missing                 [ pass ]      5
main.statement-expr                      [ pass ]      6
main.statistics_close                    [ pass ]      4
main.status2                             [ pass ]     11
main.status_bug17954                     [ pass ]      2
main.str_to_datetime_457                 [ pass ]      2
main.strict_autoinc_1myisam              [ pass ]      2
main.strict_autoinc_3heap                [ pass ]      2
main.strings                             [ pass ]      5
main.subquery_merge                      [ pass ]     10
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect3                          [ fail ]
        Test ended at 2026-04-26 20:39:37

CURRENT_TEST: main.subselect3
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect3.result	2026-04-24 13:55:48.357039621 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect3.reject	2026-04-26 20:39:37.758191050 +0300
@@ -1167,9 +1167,9 @@
 set @@max_heap_table_size= 16384;
 explain select count(*) from t0 A, t0 B, t0 C, t0 D where D.a in (select a from t1 E where a+1 < 10000 + A.a + B.a +C.a+D.a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	A	ALL	NULL	NULL	NULL	NULL	10	
+1	PRIMARY	E	ALL	NULL	NULL	NULL	NULL	5	Start temporary
+1	PRIMARY	A	ALL	NULL	NULL	NULL	NULL	10	Using join buffer (flat, BNL join)
 1	PRIMARY	B	ALL	NULL	NULL	NULL	NULL	10	Using join buffer (flat, BNL join)
-1	PRIMARY	E	ALL	NULL	NULL	NULL	NULL	5	Start temporary; Using join buffer (flat, BNL join)
 1	PRIMARY	C	ALL	NULL	NULL	NULL	NULL	10	Using where; Using join buffer (flat, BNL join)
 1	PRIMARY	D	ALL	NULL	NULL	NULL	NULL	10	Using where; End temporary; Using join buffer (flat, BNL join)
 flush status;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect3/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect3_jcl6                     [ fail ]
        Test ended at 2026-04-26 20:39:38

CURRENT_TEST: main.subselect3_jcl6
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect3_jcl6.result	2026-04-24 13:53:12.217386071 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect3_jcl6.reject	2026-04-26 20:39:38.722212739 +0300
@@ -1170,9 +1170,9 @@
 set @@max_heap_table_size= 16384;
 explain select count(*) from t0 A, t0 B, t0 C, t0 D where D.a in (select a from t1 E where a+1 < 10000 + A.a + B.a +C.a+D.a);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	A	ALL	NULL	NULL	NULL	NULL	10	
-1	PRIMARY	E	ALL	NULL	NULL	NULL	NULL	5	Using where; Start temporary; Using join buffer (flat, BNL join)
-1	PRIMARY	D	hash_ALL	NULL	#hash#$hj	5	test.E.a	10	Using where; Using join buffer (incremental, BNLH join)
+1	PRIMARY	E	ALL	NULL	NULL	NULL	NULL	5	Using where; Start temporary
+1	PRIMARY	D	hash_ALL	NULL	#hash#$hj	5	test.E.a	10	Using where; Using join buffer (flat, BNLH join)
+1	PRIMARY	A	ALL	NULL	NULL	NULL	NULL	10	Using join buffer (incremental, BNL join)
 1	PRIMARY	B	ALL	NULL	NULL	NULL	NULL	10	Using join buffer (incremental, BNL join)
 1	PRIMARY	C	ALL	NULL	NULL	NULL	NULL	10	Using where; End temporary; Using join buffer (incremental, BNL join)
 flush status;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect3_jcl6/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_cache                     [ pass ]    607
main.subselect_debug                     [ pass ]      4
ReplayTest: Loading context 
main.subselect_exists2in_costmat         [ pass ]    371
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_extra                     [ pass ]    295
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_extra_no_semijoin         [ pass ]    347
main.subselect_gis                       [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_mat_analyze_json          [ pass ]     32
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_mat_cost_bugs             [ fail ]
        Test ended at 2026-04-26 20:39:42

CURRENT_TEST: main.subselect_mat_cost_bugs
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_mat_cost_bugs.result	2026-04-24 13:53:12.221386165 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_mat_cost_bugs.reject	2026-04-26 20:39:41.986286172 +0300
@@ -146,8 +146,8 @@
 )
 ) IS NULL ;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
-2	SUBQUERY	t1	system	NULL	NULL	NULL	NULL	1	
+1	PRIMARY	t3	system	NULL	NULL	NULL	NULL	0	Const row not found
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	2	Using temporary
 drop table t1, t2, t3;
 #
@@ -162,7 +162,7 @@
 SELECT * FROM (SELECT * FROM t2) AS a2
 WHERE (SELECT distinct SUM(distinct f3 ) FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived2>	system	NULL	NULL	NULL	NULL	0	Const row not found
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	index	NULL	f3	5	NULL	2	Using index
 2	DERIVED	NULL	NULL	NULL	NULL	NULL	NULL	NULL	no matching row in const table
 insert into t2 values (1),(2);
@@ -170,7 +170,7 @@
 SELECT * FROM (SELECT * FROM t2) AS a2
 WHERE (SELECT distinct SUM(distinct f3 ) FROM t1);
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	PRIMARY	<derived2>	ALL	NULL	NULL	NULL	NULL	2	
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 3	SUBQUERY	t1	index	NULL	f3	5	NULL	2	Using index
 2	DERIVED	t2	ALL	NULL	NULL	NULL	NULL	2	
 set optimizer_switch=@tmp_optimizer_switch;
@@ -475,7 +475,7 @@
 2	DEPENDENT SUBQUERY	t1	index	NULL	a	5	NULL	2	100.00	Using index
 2	DEPENDENT SUBQUERY	t2	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where; Using join buffer (flat, BNL join)
 Warnings:
-Note	1003	/* select#1 */ select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<expr_cache><`test`.`t2`.`b`>(<in_optimizer>(`test`.`t2`.`b`,<exists>(/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t2`.`b` having trigcond(<cache>(`test`.`t2`.`b`) = <ref_null_helper>(min(`test`.`t1`.`a`))))))
+Note	1003	/* select#1 */ select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<expr_cache><`test`.`t2`.`b`>(<in_optimizer>(`test`.`t2`.`b`,<exists>(/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t2`.`b` having trigcond(<cache>(`test`.`t2`.`b`) = <cache>(<ref_null_helper>(min(`test`.`t1`.`a`)))))))
 set optimizer_switch= @optimizer_switch_save;
 DROP TABLE t1,t2;
 CREATE TABLE t1 (f1 varchar(10)) ENGINE=MyISAM;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_mat_cost_bugs/'
main.subselect_notembedded               [ pass ]    158
main.subselect_nulls                     [ pass ]     10
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_sj                        [ fail ]
        Test ended at 2026-04-26 20:39:46

CURRENT_TEST: main.subselect_sj
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj.result	2026-04-24 13:53:12.225386259 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/subselect_sj.reject	2026-04-26 20:39:46.114379038 +0300
@@ -771,8 +771,6 @@
 Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t2`.`c` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
 show warnings;
 Level	Code	Message
-Note	1276	Field or reference 'test.t1.b' of SELECT #3 was resolved in SELECT #1
-Note	1003	/* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` semi join (`test`.`t2`) where `test`.`t1`.`a` = `test`.`t2`.`c` and <nop>(<expr_cache><`test`.`t2`.`d`,`test`.`t1`.`b`>(<in_optimizer>(`test`.`t2`.`d`,<exists>(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and <cache>(`test`.`t2`.`d`) >= `test`.`t3`.`e`))))
 select a from t1
 where a in (select c from t2 where d >= some(select e from t3 where b=e));
 a
@@ -2575,7 +2573,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	t3	index	b	b	5	NULL	10	Using where; Using index; Start temporary
 1	PRIMARY	t4	ref	c	c	5	test.t3.b	1	
-1	PRIMARY	t1	ALL	b	NULL	NULL	NULL	10	Using where; Using join buffer (flat, BNL join)
+1	PRIMARY	t1	ref	b	b	5	test.t3.b	2	
 1	PRIMARY	t2	ALL	NULL	NULL	NULL	NULL	8	Using where; End temporary; Using join buffer (flat, BNL join)
 SELECT a, b, d FROM t1, t2
 WHERE ( b, d ) IN

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.subselect_sj/'
main.subselect_sj_aria                   [ pass ]     35
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.subselect_sj_nonmerged              [ pass ]     60
main.subselect_union_rand                [ pass ]      3
main.sum_distinct                        [ pass ]    349
main.symlink                             [ pass ]    480
main.symlink-aria-11902                  [ pass ]     21
main.symlink-myisam-11902                [ pass ]     20
main.synchronization                     [ pass ]     22
main.system_mysql_db                     [ pass ]      5
main.system_mysql_db_507                 [ pass ]     23
main.system_mysql_db_refs                [ pass ]      9
main.system_time_debug                   [ pass ]      1
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.table_elim_debug                    [ pass ]     18
main.table_keyinfo-6838                  [ pass ]      5
main.table_options                       [ pass ]     25
main.table_options-5867                  [ pass ]      3
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.table_value_constr                  [ pass ]    296
main.temp_table_frm                      [ pass ]   1427
main.temp_table_symlink                  [ pass ]      8
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.temporal_literal                    [ pass ]     32
main.temporal_scale_4283                 [ pass ]      3
main.thread_id_overflow                  [ pass ]      3
main.timeout                             [ pass ]      8
main.timezone                            [ pass ]     50
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.timezone2                           [ fail ]
        Test ended at 2026-04-26 20:39:54

CURRENT_TEST: main.timezone2
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/timezone2.result	2026-04-24 13:53:12.229386352 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/timezone2.reject	2026-04-26 20:39:54.138559541 +0300
@@ -687,7 +687,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2010-10-30 02:59:59'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (24 hours before the DST fall back)
 #
@@ -699,7 +699,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(localtimestamp())
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (less than 24 hours after the DST fall back)
 #
@@ -711,7 +711,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(localtimestamp())
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Optimized (24 hours after the DST fall back)
 #
@@ -723,7 +723,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2010-11-01 02:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 DROP TABLE t1;
 SET time_zone=DEFAULT;
 #
@@ -744,7 +744,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2011-03-26 01:59:59'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (24 hours before the DST sprint forward)
 #
@@ -756,7 +756,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(localtimestamp())
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (less than 24 hours after the DST sprint forward)
 #
@@ -768,7 +768,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(localtimestamp())
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Optimized (24 hours after the DST sprint forward)
 #
@@ -780,7 +780,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2011-03-28 03:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 DROP TABLE t1;
 #
 # Testing a leap second
@@ -812,7 +812,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'1981-06-30 03:59:59'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (24 hours before the leap second)
 #
@@ -824,7 +824,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(localtimestamp())
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (less than 24 hours after the leap second)
 #
@@ -836,7 +836,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = <cache>(localtimestamp())
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 #
 # Not optimized (24 hours after the leap second)
 #
@@ -848,7 +848,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	4	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'1981-07-02 03:59:59'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 20:39:54'
 DROP TABLE t1;
 SET time_zone=DEFAULT;
 #

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.timezone2/'
main.timezone3                           [ pass ]     38
main.timezone4                           [ pass ]      1
main.timezone_grant                      [ pass ]     52
main.tmp_table_count-7586                [ pass ]     13
main.trigger                             [ pass ]   3990
main.trigger-compat                      [ pass ]     62
main.trigger_no_defaults-11698           [ pass ]      5
main.trigger_notembedded                 [ pass ]   2198
main.trigger_null                        [ pass ]     57
main.truncate                            [ pass ]     17
main.truncate_coverage                   [ pass ]      9
main.truncate_notembedded                [ pass ]      3
main.type_binary                         [ pass ]     43
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_bit                            [ pass ]    240
main.type_bool                           [ pass ]      1
main.type_char                           [ pass ]      2
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_date                           [ fail ]
        Test ended at 2026-04-26 20:40:05

CURRENT_TEST: main.type_date
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_date.result	2026-04-24 13:53:12.237386540 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_date.reject	2026-04-26 20:40:05.174807772 +0300
@@ -434,9 +434,7 @@
 explain
 select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
-1	SIMPLE	t1_0	ref	a	a	4	const	1	Using where; Using index
-1	SIMPLE	t2	index	NULL	a	4	NULL	2	Using index; Using join buffer (flat, BNL join)
-1	SIMPLE	t1	index	NULL	a	4	NULL	2	Using index; Using join buffer (incremental, BNL join)
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
 select 1 from t1 as t1_0 inner join t1 as t2 on (t1_0.a <=> now()) join t1 on 1;
 1
 SET TIMESTAMP=UNIX_TIMESTAMP('2012-01-03 00:00:01');
@@ -663,13 +661,13 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-30'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2026-04-26'
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-30' and <cache>(octet_length(DATE'2015-08-30')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2026-04-26' and <cache>(octet_length(DATE'2026-04-26')) = 30 + rand()
 DROP TABLE t1;
 CREATE TABLE t1 (a DATE);
 INSERT INTO t1 VALUES ('2015-08-30'),('2015-08-31');
@@ -688,13 +686,13 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-31'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2026-04-27'
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIME'24:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2015-08-31' and <cache>(octet_length(DATE'2015-08-31')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2026-04-27' and <cache>(octet_length(DATE'2026-04-27')) = 30 + rand()
 DROP TABLE t1;
 # In this example '00:00:00' is not recognized as TIME'00:00:00'
 # and is treated as DATE'0000-00-00'.

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_date/'
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_date_round                     [ fail ]
        Test ended at 2026-04-26 20:40:05

CURRENT_TEST: main.type_date_round
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_date_round.result	2026-04-24 13:53:12.237386540 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_date_round.reject	2026-04-26 20:40:05.602817398 +0300
@@ -131,13 +131,13 @@
 Warnings:
 Note	1292	Truncated incorrect datetime value: '2001-01-01 23:59:59.9999999'
 Note	1292	Truncated incorrect datetime value: '2001-01-01 23:59:59.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-02'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 23:59:59.999999'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='2001-01-01 23:59:59.9999999' AND CONCAT(a)='2001-01-02';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
 Note	1292	Truncated incorrect datetime value: '2001-01-01 23:59:59.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = DATE'2001-01-02'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 DROP TABLE t1;
 #
 # Comparing non-temporal to DATE

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_date_round/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_datetime                       [ fail ]
        Test ended at 2026-04-26 20:40:06

CURRENT_TEST: main.type_datetime
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_datetime.result	2026-04-24 13:53:12.237386540 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_datetime.reject	2026-04-26 20:40:06.318833502 +0300
@@ -1089,13 +1089,13 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2026-04-26 00:00:00'
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=40+RAND() AND a=TIME'00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP'2001-01-01 00:00:00')) = 40 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2026-04-26 00:00:00' and <cache>(octet_length(TIMESTAMP'2026-04-26 00:00:00')) = 40 + rand()
 DROP TABLE t1;
 #
 # MDEV-8795 Equal expression propagation does not work for temporal literals

Result content mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_datetime/'
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_datetime_round                 [ fail ]
        Test ended at 2026-04-26 20:40:06

CURRENT_TEST: main.type_datetime_round
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_datetime_round.result	2026-04-24 13:53:12.237386540 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_datetime_round.reject	2026-04-26 20:40:06.758843399 +0300
@@ -157,13 +157,13 @@
 Warnings:
 Note	1292	Truncated incorrect datetime value: '20010101235959.9999999'
 Note	1292	Truncated incorrect datetime value: '20010101235959.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-02 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-01 23:59:59.999999'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='20010101235959.9999999' AND CONCAT(a)='2001-01-02 00:00:00.000000';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
 Note	1292	Truncated incorrect datetime value: '20010101235959.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'2001-01-02 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 DROP TABLE t1;
 #
 # Comparing non-temporal to DATETIME

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_datetime_round/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_decimal                        [ pass ]    182
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_enum                           [ pass ]    458
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_float                          [ pass ]    203
main.type_geometry_mix_int               [ pass ]     45
ReplayTest: Loading context 
main.type_hex_hybrid                     [ pass ]     18
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_int                            [ pass ]    267
main.type_interval                       [ pass ]      3
main.type_json                           [ pass ]     16
main.type_nchar                          [ pass ]      6
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_newdecimal                     [ pass ]    247
main.type_num                            [ pass ]    110
main.type_ranges                         [ pass ]     38
main.type_row                            [ pass ]      8
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_set                            [ pass ]    115
main.type_temporal_mariadb53             [ pass ]      7
main.type_temporal_mysql56               [ pass ]      3
main.type_temporal_mysql56_debug         [ pass ]     70
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_time                           [ fail ]
        Test ended at 2026-04-26 20:40:12

CURRENT_TEST: main.type_time
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_time.result	2026-04-24 13:53:12.241386634 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_time.reject	2026-04-26 20:40:12.354969255 +0300
@@ -557,15 +557,15 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 DROP TABLE t1;
 # TIMESTAMP literal with a bigger scale and fractional second truncation
 # Ok to propagate with precision truncation
@@ -581,15 +581,15 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.123';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31.123';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 DROP TABLE t1;
 # TIMESTAMP literal with a bigger scale and no fractional second truncation
 # Ok to propagate
@@ -607,15 +607,15 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=8 AND a=TIMESTAMP'2001-01-01 10:20:31.000';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=30+RAND() AND a=TIMESTAMP'2001-01-01 10:20:31.000';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31' and <cache>(octet_length(TIME'10:20:31')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 DROP TABLE t1;
 # TIMESTAMP literal with a smaller scale
 # Ok to propagate
@@ -638,7 +638,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:31.123000' and <cache>(octet_length(TIME'10:20:31.123000')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59.999999')) = 30 + rand()
 DROP TABLE t1;
 # TIME literal with a bigger scale and fractional second truncation
 # Ok to propagate with precision truncation
@@ -815,15 +815,15 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-00 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-00 10:20:30' AND LENGTH(a)=30+RAND();
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30' and <cache>(octet_length(TIME'10:20:30')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 # Old mode, TIMESTAMP literal, non-zero YYYYMMDD, no propagation
 SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30';
 a
@@ -834,27 +834,27 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a=TIMESTAMP'0000-00-01 10:20:30' AND LENGTH(a)=30+RAND();
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a=TIMESTAMP'0000-01-00 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0000-01-00 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a=TIMESTAMP'0001-00-00 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'0001-00-00 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # Old mode, TIMESTAMP-alike string literal, zero YYYYMMDD, Ok to propagate
 SELECT * FROM t1 WHERE a='0000-00-00 10:20:30';
 a
@@ -865,15 +865,15 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a='0000-00-00 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a='0000-00-00 10:20:30' AND LENGTH(a)=30+RAND();
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'10:20:30' and <cache>(octet_length(TIME'10:20:30')) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 # Old mode, TIMESTAMP-alike literal, non-zero YYYYMMDD, no propagation
 SELECT * FROM t1 WHERE a='0000-00-01 10:20:30';
 a
@@ -884,15 +884,15 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=30+RAND();
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 30 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'-838:59:59.999999' and <cache>(octet_length(TIME'-838:59:59')) = 30 + rand()
 DROP TABLE t1;
 SET @@old_mode=DEFAULT;
 #
@@ -929,9 +929,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE DATE(a)<=TIMESTAMP'2015-08-30 00:00:00.1' AND a='00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE TIMESTAMP('2015-08-08',a+RAND())<=TIMESTAMP'2015-08-30 00:00:00.1' AND a='00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
@@ -954,9 +954,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE DATE(a)<=DATE'2015-08-30' AND a='00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE TIMESTAMP('2015-08-08',a+RAND())<=DATE'2015-08-30' AND a='00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
@@ -1001,9 +1001,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE('2015-09-11');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # TIME cast + DATE literal
 SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE'2015-09-11';
 a
@@ -1011,9 +1011,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=TIME('00:00:00') AND COALESCE(a)=DATE'2015-09-11';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # TIME literal + DATE cast
 SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE('2015-09-11');
 a
@@ -1021,9 +1021,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE('2015-09-11');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = TIME'00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # TIME literal + DATE literal
 SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE'2015-09-11';
 a
@@ -1031,9 +1031,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=TIME'00:00:00' AND COALESCE(a)=DATE'2015-09-11';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = TIME'00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # TIME-alike string literal + DATE cast
 SELECT * FROM t1 WHERE COALESCE(a)='00:00:00' AND COALESCE(a)=DATE('2015-09-11');
 a
@@ -1081,9 +1081,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME('00:00:00');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # DATE cast + TIME literal
 SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME'00:00:00';
 a
@@ -1091,9 +1091,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)=TIME'00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = '2015-09-11 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # DATE cast + TIME-alike string literal
 SELECT * FROM t1 WHERE COALESCE(a)=DATE('2015-09-11') AND COALESCE(a)='00:00:00';
 a
@@ -1121,9 +1121,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME('00:00:00');
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2015-09-11'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # DATE literal + TIME literal
 SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME'00:00:00';
 a
@@ -1131,9 +1131,9 @@
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)=TIME'00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where coalesce(`test`.`t1`.`a`) = DATE'2015-09-11'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 # DATE literal + TIME-alike string literal
 SELECT * FROM t1 WHERE COALESCE(a)=DATE'2015-09-11' AND COALESCE(a)='00:00:00';
 a
@@ -1246,18 +1246,18 @@
 34:20:30
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 SET @@optimizer_use_condition_selectivity=4;
 SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
 a
 34:20:30
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='0000-00-01 10:20:30' AND LENGTH(a)=8;
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	8	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = '0000-00-01 10:20:30' and octet_length(`test`.`t1`.`a`) = 8
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 drop table t1;
 SET @@optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
 set @@old_mode= @save_old_mode;

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_time/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_time_6065                      [ pass ]    689
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_time_round                     [ fail ]
        Test ended at 2026-04-26 20:40:13

CURRENT_TEST: main.type_time_round
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_time_round.result	2026-04-24 13:53:12.245386728 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_time_round.reject	2026-04-26 20:40:13.690999300 +0300
@@ -210,13 +210,13 @@
 Warnings:
 Note	1292	Truncated incorrect time value: '0.9999999'
 Note	1292	Truncated incorrect time value: '0.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:01'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:00.999999'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a='0.9999999' AND CONCAT(a)='00:00:01.000000';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
-1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
+1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE
 Warnings:
 Note	1292	Truncated incorrect time value: '0.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIME'00:00:01'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where 0
 DROP TABLE t1;
 #
 # Comparing non-temporal to TIME

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_time_round/'
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_timestamp '64bit'              [ fail ]
        Test ended at 2026-04-26 20:40:14

CURRENT_TEST: main.type_timestamp
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/type_timestamp.result	2026-04-24 13:53:12.245386728 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/type_timestamp.reject	2026-04-26 20:40:14.619020171 +0300
@@ -955,13 +955,13 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2001-01-01 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 00:00:00'
 EXPLAIN EXTENDED
 SELECT * FROM t1 WHERE LENGTH(a)=40+RAND() AND a=TIME'00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	2	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2001-01-01 00:00:00' and <cache>(octet_length(TIMESTAMP/*WITH LOCAL TIME ZONE*/'2001-01-01 00:00:00')) = 40 + rand()
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 00:00:00' and <cache>(octet_length(TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-04-26 00:00:00')) = 40 + rand()
 DROP TABLE t1;
 #
 # End of 10.1 tests
@@ -1543,12 +1543,12 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'1970-01-02 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'1970-01-02 02:00:00'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=TIMESTAMP'1970-01-02 00:00:00';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'1970-01-02 00:00:00'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'1970-01-02 00:00:00'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=TIMESTAMP'2038-01-18 03:14:07';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
@@ -1558,7 +1558,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-18 03:14:07'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-18 05:14:07'
 #
 # Corner cases: DATETIME values after the supported optimization range
 # FROM_UNIXTIME(0x7FFFFFFF-24*3600+1) .. FROM_UNIXTIME(0x7FFFFFFF)
@@ -1567,7 +1567,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-18 03:14:08'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-18 05:14:08'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=TIMESTAMP'2038-01-18 03:14:08';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
@@ -1582,7 +1582,7 @@
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-19 03:14:07'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-19 05:14:07'
 #
 # Corner cases: rounding
 #
@@ -1603,7 +1603,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
 Note	1292	Truncated incorrect DATETIME value: '1970-01-01 23:59:59.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'1970-01-02 00:00:00.000000'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP'1970-01-01 23:59:59.999999'
 EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=TIMESTAMP'2038-01-18 03:14:07.999999';
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	filtered	Extra
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
@@ -1617,7 +1617,7 @@
 1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	3	100.00	Using where
 Warnings:
 Note	1292	Truncated incorrect DATETIME value: '2038-01-18 03:14:07.9999999'
-Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-18 03:14:08.000000'
+Note	1003	select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2038-01-18 03:14:07.999999'
 SET sql_mode=DEFAULT;
 #
 # NULLIF: Bad TIMESTAMP values preserve DATETIME comparison

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.type_timestamp-64bit/'
main.type_timestamp_round                [ pass ]     65
ReplayTest: Loading context 
main.type_uint                           [ pass ]     51
main.type_varbinary                      [ pass ]      2
main.type_varchar_mysql41                [ pass ]     26
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.type_year                           [ pass ]     86
main.udf                                 [ pass ]   1524
main.udf_debug_sync                      [ pass ]      7
main.udf_notembedded                     [ pass ]   1427
main.udf_query_cache                     [ pass ]      5
main.union_crash-714                     [ pass ]      2
main.update_ignore_216                   [ pass ]      3
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.update_single_to_multi              [ fail ]
        Test ended at 2026-04-26 20:40:28

CURRENT_TEST: main.update_single_to_multi
--- /optane/dev-git2/13.0-context-replay/mysql-test/main/update_single_to_multi.result	2026-04-24 13:53:12.249386822 +0300
+++ /optane/dev-git2/13.0-context-replay/mysql-test/main/update_single_to_multi.reject	2026-04-26 20:40:28.491332116 +0300
@@ -386,8 +386,8 @@
 where n_name='PERU'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
-1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	
+1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	customer	ref	PRIMARY,i_c_nationkey	i_c_nationkey	5	dbt3_s001.nation.n_nationkey	6	
 1	PRIMARY	orders	ref|filter	PRIMARY,i_o_orderdate,i_o_custkey	i_o_custkey|i_o_orderdate	5|4	dbt3_s001.customer.c_custkey	15 (7%)	Using where; Using rowid filter
 1	PRIMARY	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
@@ -428,8 +428,8 @@
 where n_name='PERU'));
 id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
 1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
-1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	supplier	ref	PRIMARY,i_s_nationkey	i_s_nationkey	5	dbt3_s001.nation.n_nationkey	1	
+1	PRIMARY	nation	ref	PRIMARY,i_n_name	i_n_name	26	const	1	Using index condition
 1	PRIMARY	customer	ref	PRIMARY,i_c_nationkey	i_c_nationkey	5	dbt3_s001.nation.n_nationkey	6	
 1	PRIMARY	orders	ref|filter	PRIMARY,i_o_orderdate,i_o_custkey	i_o_custkey|i_o_orderdate	5|4	dbt3_s001.customer.c_custkey	15 (7%)	Using where; Using rowid filter
 1	PRIMARY	lineitem	ref	PRIMARY,i_l_suppkey_partkey,i_l_partkey,i_l_suppkey,i_l_orderkey,i_l_orderkey_quantity	PRIMARY	4	dbt3_s001.orders.o_orderkey	4	Using where
@@ -3566,7 +3566,7 @@
               "loops": 1,
               "rows": 17,
               "cost": "COST_REPLACED",
-              "filtered": 79.54545593,
+              "filtered": 82.35294342,
               "attached_condition": "partsupp_small.ps_partkey is not null",
               "using_index": true
             }
@@ -3596,10 +3596,10 @@
               "key_length": "5",
               "used_key_parts": ["l_partkey"],
               "ref": ["dbt3_s001.partsupp_small.ps_partkey"],
-              "loops": 420.35,
+              "loops": 420,
               "rows": 30,
               "cost": "COST_REPLACED",
-              "filtered": 0.237896994,
+              "filtered": 0.238095239,
               "using_index": true
             }
           }
@@ -3682,7 +3682,7 @@
               "loops": 1,
               "rows": 17,
               "cost": "COST_REPLACED",
-              "filtered": 79.54545593,
+              "filtered": 82.35294342,
               "attached_condition": "partsupp_small.ps_partkey is not null",
               "using_index": true
             }
@@ -3711,10 +3711,10 @@
               "key_length": "5",
               "used_key_parts": ["l_partkey"],
               "ref": ["dbt3_s001.partsupp_small.ps_partkey"],
-              "loops": 420.35,
+              "loops": 420,
               "rows": 30,
               "cost": "COST_REPLACED",
-              "filtered": 0.237896994,
+              "filtered": 0.238095239,
               "using_index": true
             }
           }

Result length mismatch

 - skipping '/optane/dev-git2/13.0-context-replay/mysql-test/var/log/main.update_single_to_multi/'
main.upgrade_MDEV-19650                  [ pass ]    741
main.upgrade_MDEV-23102-1                [ pass ]   1320
main.upgrade_MDEV-23102-2                [ pass ]   1293
main.upgrade_geometrycolumn_procedure_definer [ pass ]    662
main.upgrade_mdev_24363                  [ pass ]    663
main.userstat-badlogin-4824              [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
main.varbinary                           [ pass ]     19
main.variables_community                 [ pass ]      2
main.vector_aria                         [ pass ]     15
main.vector_debug                        [ pass ]      4
main.vector_funcs                        [ pass ]     22
main.vector_utf16                        [ pass ]       
main.view_alias                          [ pass ]     24
main.view_debug                          [ pass ]      5
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
ReplayTest: Loading context 
main.view_grant                          [ pass ]    415
main.wait_timeout                        [ pass ]   6172
main.warnings_engine_disabled            [ pass ]      4
main.win_as_arg_to_aggregate_func        [ pass ]      6
main.win_avg                             [ pass ]      2
main.win_big                             [ pass ]    439
main.win_big-mdev-10092                  [ pass ]     17
ReplayTest: Loading context 
ReplayTest: Loading context 
main.win_big-mdev-11697                  [ pass ]   3774
main.win_bit                             [ pass ]      4
ReplayTest: Loading context 
ReplayTest: Loading context 
main.win_empty_over                      [ pass ]     13
main.win_first_last_value                [ pass ]      7
main.win_i_s                             [ pass ]      5
main.win_insert_select                   [ pass ]      7
main.win_lead_lag                        [ pass ]      6
main.win_min_max                         [ pass ]     22
main.win_nth_value                       [ pass ]      4
ReplayTest: Loading context 
main.win_ntile                           [ pass ]     16
main.win_orderby                         [ pass ]      8
main.win_percent_cume                    [ pass ]      2
main.win_percentile                      [ pass ]     29
main.win_rank                            [ pass ]      4
main.win_std                             [ pass ]     10
main.win_sum                             [ pass ]      4
main.windows                             [ skipped ]  Need windows
main.windows_debug                       [ skipped ]  Need windows
main.xa_sync                             [ pass ]      5
main.xml                                 [ pass ]     48
main.rpl_mysql_upgrade_slave_repo_check 'mix' [ pass ]   3086
main.column_compression_rpl 'mix'        [ pass ]    974
main.auth_rpl 'mix'                      [ pass ]    855
main.invisible_binlog 'mix'              [ pass ]    572
main.rpl_mysqldump_slave 'mix'           [ pass ]   1115
main.create_or_replace2 'row'            [ pass ]    341
main.column_compression_rpl 'row'        [ pass ]   1066
main.stat_tables_repl 'row'              [ pass ]    522
main.long_unique_bugs_replication 'row'  [ pass ]    515
main.auth_rpl 'row'                      [ pass ]    753
main.invisible_binlog 'row'              [ pass ]    484
main.rpl_mysqldump_slave 'row'           [ pass ]   1065
main.column_compression_rpl 'stmt'       [ pass ]   1033
main.ps_show_log 'stmt'                  [ pass ]    673
main.auth_rpl 'stmt'                     [ pass ]    978
main.invisible_binlog 'stmt'             [ pass ]    547
main.rpl_mysqldump_slave 'stmt'          [ pass ]   1116
--------------------------------------------------------------------------
The servers were restarted 383 times
Spent 1469.552 of 4063 seconds executing testcases

Completed: Failed 137/1360 tests, 89.93% were successful.

Failing test(s): main.type_varchar main.ctype_utf8mb4_innodb main.ctype_utf8 main.ctype_utf8mb4 main.group_min_max main.show_explain main.subselect_mat_cost main.join_cache main.statistics_json main.innodb_ext_key main.selectivity_innodb_notembedded main.costs main.stat_tables_innodb main.selectivity_innodb main.multi_update main.partition_datatype main.partition_mrr_innodb main.index_merge_innodb main.cte_recursive main.subselect_sj2_mat main.delete_use_source main.delete main.derived_opt main.group_min_max_innodb main.range main.range_mrr_icp main.range_vs_index_merge_innodb main.subselect_innodb main.subselect_sj2 main.subselect_sj2_jcl6 main.update main.update_use_source main.ctype_uca_innodb main.delete_use_source_engines main.index_intersect_innodb main.join_outer_innodb main.subselect2 main.select_pkeycache main.union main.selectivity main.stat_tables main.limit_rows_examined main.sargable_date_cond main.explain_non_select main.partition_column main.partition_mrr_aria main.partition_mrr_myisam main.index_merge_myisam main.order_by main.subselect_mat main.selectivity_notembedded main.cset_narrowing main.derived_cond_pushdown main.derived_view main.explain_json main.func_str main.group_by_cardinality main.insert_returning main.key main.myisam_explain_non_select_all main.opt_hints main.opt_tvc main.order_by_limit_join main.range_vs_index_merge main.rowid_filter_myisam main.rownum main.subselect main.subselect4 main.subselect_no_exists_to_in main.subselect_no_mat main.subselect_no_opts main.subselect_no_scache main.subselect_no_semijoin main.subselect_sj_jcl6 main.subselect_sj_mat main.table_elim main.user_var main.variables main.myisam main.selectivity_no_engine main.analyze_stmt main.analyze_stmt_privileges2 main.ansi main.bad_startup_options main.binary main.case main.cte_update_delete main.ctype_collate main.ctype_latin1 main.ctype_uca main.ctype_ucs main.ctype_utf16 main.ctype_utf16_uca main.ctype_utf16le main.ctype_utf32 main.ctype_utf32_uca main.ctype_utf8mb4_heap main.ctype_utf8mb4_myisam main.delete_single_to_multi main.empty_string_literal main.explain main.fulltext main.func_group main.func_like main.gis main.grant_explain_non_select main.having main.having_cond_pushdown main.index_intersect main.intersect_all main.invisible_field_debug main.mix2_myisam main.mrr_icp_extra main.mysqld_option_err main.null_key main.opt_hints_subquery main.replay_server_test main.select main.select_found main.select_jcl6 main.set_operation_oracle main.subselect3 main.subselect3_jcl6 main.subselect_mat_cost_bugs main.subselect_sj main.timezone2 main.type_date main.type_date_round main.type_datetime main.type_datetime_round main.type_time main.type_time_round main.type_timestamp main.update_single_to_multi

The log files in var/log may give you some hint of what went wrong.

If you want to report this error, MariaDB's bug tracker is found at
https://jira.mariadb.org

Errors/warnings were found in logfiles during server shutdown after running the
following sequence(s) of tests:
    main.statistics_json
    main.limit_rows_examined
    main.ctype_utf8mb4_0900_ai_ci_casefold main.ctype_utf8mb4_general1400_as_ci_casefold main.ctype_utf8mb4_uca1400_ai_ci_casefold main.order_by main.ctype_utf8mb4_general_ci_ws main.ctype_utf8mb4_unicode_520_ci_casefold main.ctype_utf8mb4_turkish_ci_casefold main.analyze_format_json main.ctype_utf8mb4_unicode_ci_casefold main.ctype_utf8mb4_general_ci_casefold
    main.myisam
    main.mysqld--help-aria main.mysqld--help main.mysqld--defaults-file main.mysqld_help_crash-9183 main.mysqladmin main.mysqld_option_err
52 tests were skipped, 39 by the test itself.

mysql-test-run: *** ERROR: there were failing test cases
Stopping replay server...
Replay server stopped
