Logging: /home/srikanth/server/mysql-test/mariadb-test-run.pl --replay-server --mem --suite=main --force --max-test-fail=1000 VS config: vardir: /home/srikanth/server/bld/mysql-test/var Checking leftover processes... Removing old var directory... Creating var directory '/home/srikanth/server/bld/mysql-test/var'... - symlinking 'var' to '/dev/shm/var_auto_4lhg' 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 /home/srikanth/server/bld/mysql-test/var/install.db to /home/srikanth/server/bld/mysql-test/var/extra_server_1/data... Starting mysqld on port 10011 with socket /home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.sock... Command: /home/srikanth/server/bld/sql/mariadbd --no-defaults --datadir=/home/srikanth/server/bld/mysql-test/var/extra_server_1/data --port=10011 --socket=/home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.sock --pid-file=/home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.pid --log-error=/home/srikanth/server/bld/mysql-test/var/log/extra_server_1.err --general-log=1 --general-log-file=/home/srikanth/server/bld/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 477897 Waiting for server to be ready... Socket file created: /home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.sock Extra server 1 started successfully Connection info written to /home/srikanth/server/bld/mysql-test/var/tmp/extra_server_1.info Host: 127.0.0.1 Port: 10011 Socket: /home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.sock Datadir: /home/srikanth/server/bld/mysql-test/var/extra_server_1/data General log: /home/srikanth/server/bld/mysql-test/var/log/extra_server_1.log Replay server started on socket: /home/srikanth/server/bld/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.alter_table-big [ skipped ] Test needs --big-test main.analyze_format_json_emb [ skipped ] Test needs --big-test main.analyze_format_json_timings [ skipped ] Test needs --big-test main.count_distinct3 [ skipped ] Test needs --big-test main.create-big [ skipped ] Test needs --big-test main.create_delayed [ skipped ] Test needs --big-test main.delete_use_source [ skipped ] Test needs --big-test main.flush_corruption [ skipped ] Test needs --big-test main.log_tables-big [ skipped ] Test needs --big-test main.long_unique_big [ skipped ] Test needs --big-test main.lowercase_table4 [ skipped ] Test needs --big-test main.max_statement_time [ disabled ] cannot possibly work, depends on timing main.myisam-big [ skipped ] Test needs --big-test main.mysql_client_test_nonblock [ skipped ] Test needs --big-test main.mysql_embedded [ disabled ] Bug#12561297 2011-05-14 Anitha Dependent on PB2 changes - eventum#41836 main.mysqlbinlog_row_big [ skipped ] Test needs --big-test main.order_by_pack_big [ skipped ] Test needs --big-test 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.selectivity_innodb [ skipped ] Test needs --big-test main.selectivity_innodb_notembedded [ skipped ] Test needs --big-test main.ssl-big [ skipped ] Test needs --big-test main.sum_distinct-big [ skipped ] Test needs --big-test main.tablespace [ disabled ] disabled in MariaDB (no TABLESPACE table attribute) main.tmp_space_usage [ skipped ] Test needs --big-test main.type_newdecimal-big [ skipped ] Test needs --big-test main.mysql_install_db_win_admin [ skipped ] Requires admin privileges 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.winservice_basic [ skipped ] Requires admin privileges main.winservice_i18n [ skipped ] Requires admin privileges main.connect-abstract [ pass ] 1 main.connect [ pass ] 14298 main.connect2 [ pass ] 24 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 ] 14015 main.ssl_encrypted_key 'env' [ pass ] 36 main.ssl_encrypted_key 'file' [ pass ] 37 main.ssl_encrypted_key 'pass' [ pass ] 36 main.optimizer_costs2 [ pass ] 2 main.ipv4_and_ipv6 [ pass ] 158 main.ipv4_as_ipv6 [ pass ] 444 main.ipv6 [ pass ] 223 main.bind_multiple_addresses_resolution [ pass ] 15 main.bind_address_resolution [ pass ] 11 main.sp_trans_log [ pass ] 45 main.tc_heuristic_recover [ pass ] 2628 main.merge_alter [ pass ] 19 main.mysqlbinlog_row_minimal [ pass ] 92 main.long_unique_bugs [ pass ] 298 main.stat_tables_rbr [ pass ] 51 main.ctype_cp932_binlog_row [ pass ] 41 main.mysqlbinlog_row_compressed [ pass ] 47 main.invisible_partition [ pass ] 8 main.mysqlbinlog-innodb [ pass ] 21 main.partition_innodb_stmt [ pass ] 25 main.session_tracker_sysvar [ pass ] 10 main.tmp_table_binlog [ pass ] 11 main.mysqlbinlog [ pass ] 581 main.mysqlbinlog_stmt_compressed [ pass ] 41 main.set_statement_notembedded_binlog [ pass ] 14 main.partition_binlog_stmt [ pass ] 10 main.backup_lock_binlog [ pass ] 2016 main.lock_tables_lost_commit [ pass ] 14 main.ctype_collate_implicit_def [ pass ] 19 main.ctype_filesystem [ pass ] 4 ReplayTest: Loading context main.ps [ pass ] 1614 main.mysqlcheck [ pass ] 734 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:03:01 CURRENT_TEST: main.type_varchar --- /home/srikanth/server/mysql-test/main/type_varchar.result 2026-05-06 15:05:32.417048948 +0530 +++ /home/srikanth/server/mysql-test/main/type_varchar.reject 2026-05-25 09:03:01.519282755 +0530 @@ -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 1126. 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 1129. 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 1132. 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 1135. 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 1138. 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 1141. 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 1138. 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 1135. 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 1132. 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 1129. 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 1126. 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 394. 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 '/home/srikanth/server/bld/mysql-test/var/log/main.type_varchar/' to '/home/srikanth/server/bld/mysql-test/var/log/main.type_varchar/' main.upgrade [ pass ] 52 main.ctype_ucs2_query_cache [ pass ] 8 main.ctype_ucs2_def [ pass ] 12 main.ctype_utf16_def [ pass ] 9 main.ctype_utf32_def [ pass ] 6 main.lowercase_utf8 [ pass ] 6 main.bug47671 [ pass ] 22 main.ctype_utf8_def_upgrade [ pass ] 12 main.mysql_upgrade-34014 [ pass ] 675 main.ctype_utf8mb4_unicode_ci_def [ pass ] 6 main.ctype_ldml [ pass ] 203 main.grant [ pass ] 389 main.grant2 [ pass ] 158 main.grant4 [ pass ] 50 main.mysqldump [ pass ] 41463 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-05-25 09:03:51 CURRENT_TEST: main.ctype_utf8mb4_innodb --- /home/srikanth/server/mysql-test/main/ctype_utf8mb4_innodb.result 2026-05-06 15:05:32.377048436 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf8mb4_innodb.reject 2026-05-25 09:03:51.575509336 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf8mb4_innodb/' to '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf8mb4_innodb/' main.mysqldump-max [ pass ] 543 main.lock_sync [ pass ] 240 main.partition_innodb_semi_consistent [ pass ] 10062 main.mdl_sync [ pass ] 1388 main.crash_commit_before [ pass ] 235 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:04:10 CURRENT_TEST: main.ctype_utf8 --- /home/srikanth/server/mysql-test/main/ctype_utf8.result 2026-05-06 15:05:32.376048424 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf8.reject 2026-05-25 09:04:10.461968948 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf8/' to '/home/srikanth/server/bld/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-05-25 09:04:11 CURRENT_TEST: main.ctype_utf8mb4 --- /home/srikanth/server/mysql-test/main/ctype_utf8mb4.result 2026-05-06 15:05:32.376048424 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf8mb4.reject 2026-05-25 09:04:11.501994210 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf8mb4/' to '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf8mb4/' main.implicit_commit [ pass ] 217 main.ps_3innodb [ pass ] 239 main.strict [ pass ] 91 main.bootstrap [ pass ] 9766 main.multidelete_engine 'aria' [ pass ] 7 main.spatial_utility_function_collect 'aria' [ pass ] 18 main.vector 'aria' [ pass ] 155 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 323 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.mdev-36094-rowid-filter-reverse-scan 'innodb' [ pass ] 50 main.multidelete_engine 'innodb' [ pass ] 10 main.spatial_utility_function_collect 'innodb' [ pass ] 27 main.vector 'innodb' [ pass ] 523 main.multidelete_engine 'heap' [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 87 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.mdev-36094-rowid-filter-reverse-scan 'myisam' [ pass ] 33 main.multidelete_engine 'myisam' [ pass ] 5 main.spatial_utility_function_collect 'myisam' [ pass ] 14 main.vector 'myisam' [ pass ] 109 main.userstat [ pass ] 1061 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:04:35 CURRENT_TEST: main.group_min_max --- /home/srikanth/server/mysql-test/main/group_min_max.result 2026-04-22 18:12:11.901590595 +0530 +++ /home/srikanth/server/mysql-test/main/group_min_max.reject 2026-05-25 09:04:34.713556719 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.group_min_max-debug/' to '/home/srikanth/server/bld/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-05-25 09:04:41 CURRENT_TEST: main.show_explain --- /home/srikanth/server/mysql-test/main/show_explain.result 2026-05-06 15:05:32.407048820 +0530 +++ /home/srikanth/server/mysql-test/main/show_explain.reject 2026-05-25 09:04:40.537697485 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.show_explain/' to '/home/srikanth/server/bld/mysql-test/var/log/main.show_explain/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.sql_safe_updates [ pass ] 29 main.enforce_storage_engine_opt [ pass ] 8 main.log_state_bug33693 [ pass ] 2 main.mysql_client_test [ pass ] 35550 main.log_tables [ pass ] 15105 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:05:35 CURRENT_TEST: main.subselect_mat_cost --- /home/srikanth/server/mysql-test/main/subselect_mat_cost.result 2026-04-22 18:12:11.981630626 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_mat_cost.reject 2026-05-25 09:05:35.052008131 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_mat_cost/' to '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_mat_cost/' main.log_state [ pass ] 16409 main.create_or_replace [ pass ] 202 main.mysql_upgrade-6984 [ pass ] 2036 main.innodb_load_xa [ skipped ] Need InnoDB plugin main.innodb_ignore_builtin [ pass ] 3 main.init_file [ pass ] 3 main.init_file_longline_3816 [ pass ] 5 ReplayTest: Loading context main.init_connection_query_cache [ pass ] 25 main.init_connect [ pass ] 51 main.ctype_utf8mb4_0900_mem [ pass ] 41 main.delayed_blob [ pass ] 10 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-05-25 09:06:04 CURRENT_TEST: main.join_cache --- /home/srikanth/server/mysql-test/main/join_cache.result 2026-04-22 18:12:11.910595099 +0530 +++ /home/srikanth/server/mysql-test/main/join_cache.reject 2026-05-25 09:06:03.692691977 +0530 @@ -460,7 +460,9 @@ 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 City hash_index_merge City_Population,City_Name #hash#$hj:City_Population,City_Name 3:4,35 world.Country.Code 25 Using sort_union(City_Population,City_Name); Using where; Using join buffer (flat, BNLH join) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Za\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Zaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name City_Name # After Analyze, Query 4 SELECT Country.Name, Country.Population, City.Name, City.Population FROM Country LEFT JOIN City @@ -861,8 +863,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name # Part 2, join_cache_level=3, Query 2 SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND @@ -939,8 +943,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name # 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 +1075,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name # Part 2, join_cache_level=4, Query 2 SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND @@ -1147,8 +1155,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name # 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 @@ -1273,6 +1283,8 @@ 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name # Part 2, join_cache_level=4, Query 10 SELECT Country.Name, Country.Population, City.Name, City.Population FROM Country LEFT JOIN City @@ -1301,8 +1313,11 @@ (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 Country range Name Name 52 NULL 1 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 25 Using sort_union(Population,City_Name); Using where; Using join buffer (flat, BNLH join) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Za\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Zaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name City_Name # 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 +1354,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -1413,8 +1430,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -1536,8 +1555,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -1610,8 +1631,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -1733,8 +1756,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -1807,8 +1832,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -1930,8 +1957,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2004,8 +2033,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2131,8 +2162,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2205,8 +2238,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2235,8 +2270,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2309,8 +2346,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2339,8 +2378,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2413,8 +2454,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2443,8 +2486,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2517,8 +2562,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2547,8 +2594,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2621,8 +2670,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2651,8 +2702,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT City.Name, Country.Name FROM City,Country WHERE City.Country=Country.Code AND Country.Name LIKE 'L%' AND City.Population > 100000; @@ -2725,8 +2778,10 @@ 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 Country range PRIMARY,Name Name 52 NULL 1 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.Country and index_name Name SELECT Name FROM City WHERE City.Country IN (SELECT Code FROM Country WHERE Country.Name LIKE 'L%') AND City.Population > 100000; @@ -2958,8 +3013,10 @@ 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 Country range Name Name 302 NULL 1 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) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 EXPLAIN SELECT Country.Name, Country.Population, City.Name, City.Population FROM Country LEFT JOIN City @@ -2967,8 +3024,11 @@ (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 Country range Name Name 302 NULL 1 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 25 Using sort_union(Population,City_Name); Using where; Using join buffer (flat, BNLH join) +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Za\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Zaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name City_Name 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 +3815,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 +3828,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 +6119,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 '/home/srikanth/server/bld/mysql-test/var/log/main.join_cache/' to '/home/srikanth/server/bld/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-05-25 09:06:07 CURRENT_TEST: main.statistics_json --- /home/srikanth/server/mysql-test/main/statistics_json.result 2026-04-22 18:12:11.974627124 +0530 +++ /home/srikanth/server/mysql-test/main/statistics_json.reject 2026-05-25 09:06:06.916768764 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.statistics_json/' to '/home/srikanth/server/bld/mysql-test/var/log/main.statistics_json/' ***Warnings generated in error logs during shutdown after running tests: main.statistics_json 2026-05-25 9:06:05 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted 2026-05-25 9:06:05 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted 2026-05-25 9:06:05 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted 2026-05-25 9:06:05 4 [ERROR] Column count of mysql.table_stats is wrong. Expected 3, found 1. The table is probably corrupted 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: Root JSON element must be a JSON object at offset 1. 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: histogram_hb must contain an array at offset 32. 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: Expected an object in the buckets array at offset 32. 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: "start" element not present at offset 42. 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: String or number expected at offset 27. 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: "ndv" element not present at offset 57. 2026-05-25 9:06:06 4 [ERROR] Failed to parse histogram for table test.t1_json: "ndv" element not present at offset 45. 2026-05-25 9:06:06 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 ] 2045 main.analyze_stmt_prefetch_count [ pass ] 2089 main.host_cache_size_functionality [ pass ] 1318 main.long_unique_innodb [ pass ] 8095 main.insert_debug [ 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 main.innodb_ext_key 'off,unoptimized' [ fail ] Test ended at 2026-05-25 09:06:28 CURRENT_TEST: main.innodb_ext_key --- /home/srikanth/server/mysql-test/main/innodb_ext_key,off.result~ 2026-04-24 16:12:18.125748826 +0530 +++ /home/srikanth/server/mysql-test/main/innodb_ext_key,off.reject 2026-05-25 09:06:28.542282837 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.innodb_ext_key-off,unoptimized/' to '/home/srikanth/server/bld/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-05-25 09:06:32 CURRENT_TEST: main.innodb_ext_key --- /home/srikanth/server/mysql-test/main/innodb_ext_key,on,unoptimized.result~ 2026-04-24 16:12:18.753884548 +0530 +++ /home/srikanth/server/mysql-test/main/innodb_ext_key,on,unoptimized.reject 2026-05-25 09:06:31.981364437 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.innodb_ext_key-on,unoptimized/' to '/home/srikanth/server/bld/mysql-test/var/log/main.innodb_ext_key-on,unoptimized/' main.mdev-25830 'unoptimized' [ pass ] 34 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:06:36 CURRENT_TEST: main.innodb_ext_key --- /home/srikanth/server/mysql-test/main/innodb_ext_key,off.result~ 2026-04-24 16:12:18.125748826 +0530 +++ /home/srikanth/server/mysql-test/main/innodb_ext_key,off.reject 2026-05-25 09:06:36.077461571 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.innodb_ext_key-covering,off/' to '/home/srikanth/server/bld/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-05-25 09:06:39 CURRENT_TEST: main.innodb_ext_key --- /home/srikanth/server/mysql-test/main/innodb_ext_key,covering,on.result~ 2026-04-24 16:12:21.277422111 +0530 +++ /home/srikanth/server/mysql-test/main/innodb_ext_key,covering,on.reject 2026-05-25 09:06:39.448541468 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.innodb_ext_key-covering,on/' to '/home/srikanth/server/bld/mysql-test/var/log/main.innodb_ext_key-covering,on/' main.mdev-25830 'covering' [ pass ] 34 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 6168 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 6298 main.costs [ pass ] 1323 ReplayTest: Loading context ReplayTest: Loading context 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 ] 7498 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1763 main.large_pages [ pass ] 13 main.flush_block_commit_notembedded [ pass ] 1112 main.drop_table_force [ pass ] 49 main.alter_table_online_debug 'binlog' [ pass ] 1768 main.innodb_mysql_lock2 [ pass ] 1142 main.alter_table_online 'binlog' [ pass ] 159 main.bug39022 [ pass ] 25 main.commit_1innodb [ pass ] 672 main.create_select [ pass ] 15 main.sp_trans [ pass ] 213 main.xa_binlog [ pass ] 18 main.partition_exchange [ pass ] 210 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:07:28 CURRENT_TEST: main.stat_tables_innodb --- /home/srikanth/server/mysql-test/main/stat_tables_innodb.result 2026-04-22 16:18:41.467031227 +0530 +++ /home/srikanth/server/mysql-test/main/stat_tables_innodb.reject 2026-05-25 09:07:27.874685011 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.stat_tables_innodb/' to '/home/srikanth/server/bld/mysql-test/var/log/main.stat_tables_innodb/' main.alter_table_online_debug 'nobinlog' [ pass ] 1964 ReplayTest: Loading context main.partition_explicit_prune [ pass ] 565 main.partition_icp [ pass ] 923 ReplayTest: Loading context main.partition_innodb2 [ pass ] 63 main.repair [ pass ] 1719 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:07:39 CURRENT_TEST: main.multi_update --- /home/srikanth/server/mysql-test/main/multi_update.result 2026-04-22 18:12:11.921600603 +0530 +++ /home/srikanth/server/mysql-test/main/multi_update.reject 2026-05-25 09:07:39.419956529 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.multi_update/' to '/home/srikanth/server/bld/mysql-test/var/log/main.multi_update/' ReplayTest: Loading context main.query_cache [ pass ] 25245 main.alter_table_locknone [ pass ] 72 main.auto_increment_ranges_innodb [ pass ] 146 main.innodb_mysql_sync [ pass ] 15256 main.mysql_upgrade-20228 [ pass ] 619 main.mysql_upgrade_to_100502 [ pass ] 650 main.partition_alter [ pass ] 133 main.partition_cache [ pass ] 77 main.partition_cache_innodb [ pass ] 770 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:08:26 CURRENT_TEST: main.partition_datatype --- /home/srikanth/server/mysql-test/main/partition_datatype.result 2026-04-22 18:12:11.944612112 +0530 +++ /home/srikanth/server/mysql-test/main/partition_datatype.reject 2026-05-25 09:08:26.084049895 +0530 @@ -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 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 Result length mismatch - saving '/home/srikanth/server/bld/mysql-test/var/log/main.partition_datatype/' to '/home/srikanth/server/bld/mysql-test/var/log/main.partition_datatype/' main.partition_debug_sync [ pass ] 18 main.partition_geometries [ pass ] 44 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 3057 main.partition_innodb_plugin [ pass ] 60 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-05-25 09:08:31 CURRENT_TEST: main.partition_mrr_innodb --- /home/srikanth/server/mysql-test/main/partition_mrr_innodb.result 2026-04-22 18:12:11.946613113 +0530 +++ /home/srikanth/server/mysql-test/main/partition_mrr_innodb.reject 2026-05-25 09:08:31.201169410 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.partition_mrr_innodb/' to '/home/srikanth/server/bld/mysql-test/var/log/main.partition_mrr_innodb/' main.truncate-stale-6500 [ pass ] 21 main.type_datetime_hires [ pass ] 63 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1480 main.information_schema_all_engines [ pass ] 9242 main.bug46760 [ pass ] 11 main.row-checksum-old [ pass ] 23 main.row-checksum [ pass ] 24 main.backup_locks [ pass ] 48605 main.backup_interaction [ pass ] 167 main.backup_lock [ pass ] 3500 main.backup_priv [ pass ] 13 main.backup_stages [ pass ] 15111 main.backup_syntax [ pass ] 11 main.innodb_mysql_lock [ pass ] 2056 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-05-25 09:10:18 CURRENT_TEST: main.index_merge_innodb --- /home/srikanth/server/mysql-test/main/index_merge_innodb.result 2026-04-22 18:12:11.904592097 +0530 +++ /home/srikanth/server/mysql-test/main/index_merge_innodb.reject 2026-05-25 09:10:17.980647833 +0530 @@ -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 - saving '/home/srikanth/server/bld/mysql-test/var/log/main.index_merge_innodb/' to '/home/srikanth/server/bld/mysql-test/var/log/main.index_merge_innodb/' ReplayTest: Loading context main.rowid_filter_innodb_debug [ pass ] 231 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.cte_recursive [ fail ] Test ended at 2026-05-25 09:10:24 CURRENT_TEST: main.cte_recursive --- /home/srikanth/server/mysql-test/main/cte_recursive.result 2026-05-06 15:05:32.372048372 +0530 +++ /home/srikanth/server/mysql-test/main/cte_recursive.reject 2026-05-25 09:10:24.462797406 +0530 @@ -882,7 +882,7 @@ 3 RECURSIVE UNION ALL NULL NULL NULL NULL 12 100.00 Using where; Using join buffer (flat, BNL join) NULL UNION RESULT 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 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 ref key0 key0 35 test.b.departure 1 100.00 -4 DEPENDENT SUBQUERY ALL NULL NULL NULL NULL 16 100.00 Using where -NULL UNION RESULT 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 !((`test`.`b`.`arrival`,(/* 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; # @@ -4110,9 +4102,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 ref key0 key0 5 const 0 100.00 -1 PRIMARY 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 ALL NULL NULL NULL NULL 2 100.00 Using where @@ -4122,7 +4112,7 @@ 5 DERIVED 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 Result length mismatch - saving '/home/srikanth/server/bld/mysql-test/var/log/main.cte_recursive/' to '/home/srikanth/server/bld/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 "/home/srikanth/server/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 "/home/srikanth/server/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-05-25 09:10:26 CURRENT_TEST: main.subselect_sj2_mat --- /home/srikanth/server/mysql-test/main/subselect_sj2_mat.result 2026-04-22 18:12:11.983631627 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_sj2_mat.reject 2026-05-25 09:10:26.093835026 +0530 @@ -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 - saving '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_sj2_mat/' to '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_sj2_mat/' main.analyze_engine_stats 'slow_query_log_off' [ pass ] 1229 main.analyze_engine_stats 'slow_query_log_on' [ pass ] 1236 main.stat_tables_innodb_debug [ pass ] 22 ReplayTest: Loading context ReplayTest: Loading context main.analyze [ pass ] 172 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 [ pass ] 6919 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:10:41 CURRENT_TEST: main.derived_opt --- /home/srikanth/server/mysql-test/main/derived_opt.result 2026-04-22 18:12:11.882581088 +0530 +++ /home/srikanth/server/mysql-test/main/derived_opt.reject 2026-05-25 09:10:41.187182884 +0530 @@ -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 '/home/srikanth/server/bld/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 ] 644 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 245 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 445 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:10:45 CURRENT_TEST: main.group_min_max_innodb --- /home/srikanth/server/mysql-test/main/group_min_max_innodb.result 2026-04-22 18:12:11.902591096 +0530 +++ /home/srikanth/server/mysql-test/main/group_min_max_innodb.reject 2026-05-25 09:10:45.413280195 +0530 @@ -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 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 '/home/srikanth/server/bld/mysql-test/var/log/main.group_min_max_innodb/' main.group_min_max_notembedded [ pass ] 17 main.index_merge_innodb_notembedded [ pass ] 137 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 3737 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1239 ReplayTest: Loading context ReplayTest: Loading context main.join_optimizer [ pass ] 181 main.log_slow_innodb [ pass ] 251 main.opt_context_load_stats_innodb [ pass ] 537 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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_context_replay_innodb_comp [ pass ] 650 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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_context_replay_innodb_pref [ pass ] 643 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 692 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 219 ReplayTest: Loading context main.optimizer_costs_innodb [ pass ] 849 ReplayTest: Loading context main.optimizer_crash [ pass ] 137 ReplayTest: Loading context 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 ] 1300 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.order_by_optimizer_innodb [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:11:08 CURRENT_TEST: main.range --- /home/srikanth/server/mysql-test/main/range.result 2026-04-22 18:12:11.955617616 +0530 +++ /home/srikanth/server/mysql-test/main/range.reject 2026-05-25 09:11:08.518811562 +0530 @@ -2128,13 +2128,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 +2388,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 +3731,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 '/home/srikanth/server/bld/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 ] 10843 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:11:27 CURRENT_TEST: main.range_mrr_icp --- /home/srikanth/server/mysql-test/main/range_mrr_icp.result 2026-04-22 18:12:11.956618117 +0530 +++ /home/srikanth/server/mysql-test/main/range_mrr_icp.reject 2026-05-25 09:11:26.618227040 +0530 @@ -2131,13 +2131,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 +2391,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 +3729,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 '/home/srikanth/server/bld/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-05-25 09:11:41 CURRENT_TEST: main.range_vs_index_merge_innodb --- /home/srikanth/server/mysql-test/main/range_vs_index_merge_innodb.result 2026-04-22 18:12:11.957618617 +0530 +++ /home/srikanth/server/mysql-test/main/range_vs_index_merge_innodb.reject 2026-05-25 09:11:40.862553568 +0530 @@ -55,13 +55,20 @@ (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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(T\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Tÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Name 35 NULL 1 Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE Population > 100000 AND Name LIKE 'Aba%' OR @@ -69,7 +76,13 @@ 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 Name,PRIMARY 35,4 NULL 17 Using sort_union(Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Aba\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Abaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Aba\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Abaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Aba\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Abaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE (Population > 101000 AND Population < 115000); @@ -212,7 +225,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,11 +361,15 @@ 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 2 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Hÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 2 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG'))) @@ -360,13 +377,21 @@ (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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name,ID) < (Hÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,10), (P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,100) <= (Name,ID) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,110), ] doesn't exist in the list of ranges for table_name world.City and index_na +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,100) <= (Name,ID) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,110), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name,ID) < (Hÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,10), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 index_merge PRIMARY,Population,Country,Name Name,Country,Population 39,3,4 NULL 81 Using sort_union(Name,Country,Population); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name,ID) < (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,800), (Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,900) <= (Name,ID) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,1500), ] doesn't exist in the list of ranges for table_name world.City and index_name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,900) <= (Name,ID) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,1500), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name,ID) < (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((ID < 200) AND (Name LIKE 'Ha%' OR (Country > 'A' AND Country < 'ARG'))) @@ -374,6 +399,10 @@ (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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name,ID) < (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,200), (Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,100) <= (Name,ID) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,200), ] doesn't exist in the list of ranges for table_name world.City and index_name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,100) <= (Name,ID) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,200), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name,ID) < (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,200), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +642,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 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 102000) AND @@ -621,7 +652,10 @@ ((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 Country,Name,Population 3,39,4 NULL 45 Using sort_union(Country,Name,Population); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,3400) <= (Name,ID) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,3800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,3400) <= (Name,ID) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,3800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 110000) AND @@ -629,7 +663,12 @@ ((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 Country,Name,PRIMARY 3,39,4 NULL 19 Using sort_union(Country,Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,3790) <= (Name,ID) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,3800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,3790) <= (Name,ID) < (P), (P) <= (Name) <= (Pb), (Pb) < (Name,ID) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,3800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,3790) <= (Name,ID) < (P), (P) <= (Name) <= (Pb), (Pb) < (Name,ID) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,3800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,3790) <= (Name,ID) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,3800), ] doesn't exist in the list of ranges for table_name world.City and index_name Name SELECT * FROM City USE INDEX () WHERE ((Population > 101000 AND Population < 102000) AND (Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR @@ -684,11 +723,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 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pas\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pasÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +749,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 index_merge Population,Country,Name,CountryPopulation CountryPopulation,Name 7,35 NULL 11 Using sort_union(CountryPopulation,Name); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pas\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pasÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name SELECT * FROM City WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%') AND Country='USA'; @@ -801,7 +848,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 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name set @tmp_range_vs_index_merge=@@optimizer_switch; set optimizer_switch='extended_keys=off'; EXPLAIN @@ -810,14 +859,20 @@ 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 index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name,PRIMARY 35,4 NULL 12 Using sort_union(Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName 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 index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name,PRIMARY 35,4 NULL 6 Using sort_union(Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 110000) OR @@ -873,7 +928,15 @@ 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 index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryPopulation,Name,PRIMARY 7,35,4 NULL 26 Using sort_union(CountryPopulation,Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (USA) <= (Country) <= (USA), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX () WHERE ((Population > 101000 and Population < 102000) OR ID BETWEEN 3790 AND 3800) AND Country='USA' @@ -956,7 +1019,10 @@ 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 Name 35 NULL 1 Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 11000) OR @@ -964,6 +1030,9 @@ 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pho\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Phoÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pho\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Phoÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX () WHERE ((Population > 101000 AND Population < 11000) OR ID BETWEEN 3500 AND 3800) AND Country='USA' @@ -998,7 +1067,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 index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 4 Using sort_union(CountryPopulation,CountryName); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX() WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR Country='USA' AND Name LIKE 'Pa%'; @@ -1028,7 +1099,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 index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 4 Using sort_union(CountryPopulation,CountryName); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City WHERE Country='USA' AND (Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%'); @@ -1084,7 +1157,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 '/home/srikanth/server/bld/mysql-test/var/log/main.range_vs_index_merge_innodb/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.secondary_key_costs [ pass ] 199 ReplayTest: Loading context ReplayTest: Loading context main.subselect_elimination [ pass ] 79 ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:11:49 CURRENT_TEST: main.subselect_innodb --- /home/srikanth/server/mysql-test/main/subselect_innodb.result 2026-04-22 16:18:41.472031051 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_innodb.reject 2026-05-25 09:11:49.468750662 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:11:51 CURRENT_TEST: main.subselect_sj2 --- /home/srikanth/server/mysql-test/main/subselect_sj2.result 2026-04-22 18:12:11.983631627 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_sj2.reject 2026-05-25 09:11:51.249791433 +0530 @@ -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 '/home/srikanth/server/bld/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 "/home/srikanth/server/mysql-test/main/subselect_sj2.test": ReplayTest: included from /home/srikanth/server/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 "/home/srikanth/server/mysql-test/main/subselect_sj2.test": ReplayTest: included from /home/srikanth/server/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 "/home/srikanth/server/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-05-25 09:11:53 CURRENT_TEST: main.subselect_sj2_jcl6 --- /home/srikanth/server/mysql-test/main/subselect_sj2_jcl6.result 2026-04-22 18:12:11.983631627 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_sj2_jcl6.reject 2026-05-25 09:11:52.986831191 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:12:01 CURRENT_TEST: main.update --- /home/srikanth/server/mysql-test/main/update.result 2026-04-22 18:12:11.995637632 +0530 +++ /home/srikanth/server/mysql-test/main/update.reject 2026-05-25 09:12:00.997014458 +0530 @@ -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 '/home/srikanth/server/bld/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 40: included from /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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 /home/srikanth/server/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-05-25 09:12:08 CURRENT_TEST: main.update_use_source --- /home/srikanth/server/mysql-test/main/update_use_source.result 2026-04-22 16:18:41.484030628 +0530 +++ /home/srikanth/server/mysql-test/main/update_use_source.reject 2026-05-25 09:12:07.837170862 +0530 @@ -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); @@ -8604,9 +8534,7 @@ 1 SIMPLE t1 ALL t1_c2 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 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 @@ -8661,9 +8589,7 @@ 1 PRIMARY t1 ref t1_c2 t1_c2 10 const,test.t1.c1 2 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 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 @@ -8718,10 +8644,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 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 +9161,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 +9217,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 +9273,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 '/home/srikanth/server/bld/mysql-test/var/log/main.update_use_source/' main.vector2_notembedded [ pass ] 4945 main.vector_innodb [ pass ] 884 main.mysql_upgrade_mysql_json_datatype [ pass ] 2986 main.lowercase_mixed_tmpdir_innodb [ skipped ] Test requires: 'lowercase2' main.lowercase_table2 [ skipped ] Test requires: 'lowercase2' main.plugin_auth [ pass ] 3454 main.plugin_innodb [ pass ] 1662 main.xa_prepared_binlog_off [ pass ] 2798 main.temp_table [ pass ] 94 main.stat_tables_par_innodb [ pass ] 4399 ReplayTest: Loading context ReplayTest: Loading context main.statistics [ pass ] 2182 main.statistics_index_crash-7362 [ pass ] 23 main.alter_events [ pass ] 122 main.alter_table [ pass ] 4174 main.alter_table_autoinc-5574 [ pass ] 9 main.alter_table_errors [ pass ] 9 main.alter_table_lock [ pass ] 75 main.alter_table_online 'nobinlog' [ pass ] 138 main.alter_table_trans [ pass ] 28 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 108 main.backup_lock_debug [ pass ] 24 main.backup_log [ pass ] 61 main.bootstrap_innodb [ pass ] 1751 main.cache_innodb [ pass ] 72 main.check_constraint_innodb [ pass ] 13 main.column_compression [ pass ] 497 main.commit [ pass ] 45 main.concurrent_innodb_safelog [ pass ] 9226 main.concurrent_innodb_unsafelog [ pass ] 5101 main.consistent_snapshot [ pass ] 9 main.ctype_filename_innodb [ pass ] 7 main.ctype_sjis_innodb [ pass ] 41 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-05-25 09:13:04 CURRENT_TEST: main.ctype_uca_innodb --- /home/srikanth/server/mysql-test/main/ctype_uca_innodb.result 2026-04-22 18:12:11.868574083 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_uca_innodb.reject 2026-05-25 09:13:03.631443560 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_uca_innodb/' main.ctype_upgrade [ pass ] 1353 main.ctype_utf32_innodb [ pass ] 12 main.ctype_utf8mb3_innodb [ pass ] 17 ReplayTest: Loading context main.ctype_utf8mb4_0900 [ pass ] 138 main.deadlock_innodb [ pass ] 6060 main.debug_sync [ pass ] 42 main.default [ pass ] 358 main.default_innodb [ pass ] 8 main.delete_multi_order_by [ pass ] 40 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:13:16 CURRENT_TEST: main.delete_use_source_engines --- /home/srikanth/server/mysql-test/main/delete_use_source_engines.result 2026-04-22 18:12:11.879579587 +0530 +++ /home/srikanth/server/mysql-test/main/delete_use_source_engines.reject 2026-05-25 09:13:16.073726665 +0530 @@ -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); @@ -7998,8 +8034,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 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 +8099,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 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 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 +8799,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 +8865,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 '/home/srikanth/server/bld/mysql-test/var/log/main.delete_use_source_engines/' ReplayTest: Loading context ReplayTest: Loading context main.derived_cond_pushdown_innodb [ pass ] 36 main.drop [ pass ] 53 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.endspace [ pass ] 80 ReplayTest: Loading context main.explain_innodb [ pass ] 18 ReplayTest: Loading context main.explain_json_innodb [ pass ] 41 ReplayTest: Loading context main.ext_key_noPK_6794 [ pass ] 29 main.fast_prefix_index_fetch_innodb [ pass ] 34 main.flush-innodb [ pass ] 78 main.flush-innodb-notembedded [ pass ] 14 main.flush_block_commit [ pass ] 1022 main.flush_read_lock [ pass ] 4487 main.flush_read_lock_kill [ pass ] 21 main.foreign_key [ pass ] 31 main.foreign_key_lowercase0 [ pass ] 15 ReplayTest: Loading context main.func_analyse [ pass ] 54 ReplayTest: Loading context ReplayTest: Loading context 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 ] 179 ReplayTest: Loading context main.func_json [ pass ] 222 main.func_rollback [ pass ] 100 main.function_defaults_innodb [ pass ] 980 main.get_diagnostics [ pass ] 146 main.gis-alter_table [ pass ] 17 main.greedy_optimizer [ pass ] 6741 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.group_by_innodb [ pass ] 90 main.ignored_index_innodb [ 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 main.index_intersect_innodb [ fail ] Test ended at 2026-05-25 09:13:37 CURRENT_TEST: main.index_intersect_innodb --- /home/srikanth/server/mysql-test/main/index_intersect_innodb.result 2026-05-06 15:05:32.390048603 +0530 +++ /home/srikanth/server/mysql-test/main/index_intersect_innodb.reject 2026-05-25 09:13:36.744196447 +0530 @@ -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 Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City range Population,Name Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(J\0\0) <= (Country) <= (Jÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 Country # NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country SELECT * FROM City USE INDEX () WHERE Name BETWEEN 'M' AND 'N' AND Population > 1000000 AND Country LIKE 'C%'; ID Name Country Population @@ -469,29 +483,35 @@ 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 range PRIMARY,Population,Country PRIMARY 4 NULL # Using where +1 SIMPLE City range PRIMARY,Population,Country Country 7 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0,501) <= (Country,ID) <= (Cÿÿ,1000), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 +1 SIMPLE City range PRIMARY,Population,Country Country 7 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0,1) <= (Country,ID) <= (Cÿÿ,500), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0,2001) <= (Country,ID) <= (Hÿÿ,2500), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +1 SIMPLE City range Population,Name Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(J\0\0) <= (Country) <= (Jÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 +1 SIMPLE City range PRIMARY,Population,Country Country 7 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0,1) <= (Country,ID) <= (Cÿÿ,500), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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,10 @@ 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 CountryID 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0) <= (Country) <= (Mÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryID +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0) <= (Country) <= (Mÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName EXPLAIN SELECT * FROM City WHERE Country='USA' AND Population > 1000000; @@ -868,7 +901,10 @@ 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 range Population,Name,CountryID,CountryName Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX () WHERE Country LIKE 'M%' AND Population > 1000000; ID Name Country Population @@ -940,8 +976,10 @@ 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 Name 35 NULL # Using index condition; Using where 1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.City.Country # +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name DROP DATABASE world; use test; CREATE TABLE t1 ( @@ -970,6 +1008,8 @@ 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(a\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (f4) <= (aÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (r) <= (f4,f1) < (r,535), (r,985) < (f4,f1) <= (r), ] doesn't exist in the list of ranges for table_name test.t1 and index_name f4 SELECT * FROM t1 WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ; f1 f4 f5 Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.index_intersect_innodb/' main.information_schema-big [ pass ] 6522 main.information_schema-big_embedded [ skipped ] Test requires: embedded server main.information_schema_db [ pass ] 158 main.information_schema_inno [ pass ] 114 main.information_schema_temp_table [ pass ] 201 ReplayTest: Loading context main.innodb_bug878769 [ pass ] 46 main.innodb_group [ pass ] 9 ReplayTest: Loading context main.innodb_icp_debug [ 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 main.innodb_mrr_cpk [ pass ] 479 main.innodb_utf8 [ pass ] 12 main.insert_innodb [ pass ] 38 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-05-25 09:13:47 CURRENT_TEST: main.join_outer_innodb --- /home/srikanth/server/mysql-test/main/join_outer_innodb.result 2026-04-22 18:12:11.913596600 +0530 +++ /home/srikanth/server/mysql-test/main/join_outer_innodb.reject 2026-05-25 09:13:47.562442054 +0530 @@ -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 518. 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 518. DROP TABLE t1,t2; # # BUG#58456: Assertion 0 in QUICK_INDEX_MERGE_SELECT::need_sorted_output Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.join_outer_innodb/' main.keyread [ pass ] 24 main.kill [ pass ] 161 main.kill_debug [ pass ] 101 main.leaks [ pass ] 14 main.loaddata_innodb [ pass ] 28 main.lock_kill [ pass ] 26 main.locked_temporary-5955 [ pass ] 6 main.locking_clause [ pass ] 28 main.log_tables_upgrade [ pass ] 862 main.long_unique_innodb_debug [ pass ] 1093 main.mariadb-dump-debug [ pass ] 46 main.mariadb-import [ pass ] 1595 main.mdev-35046 [ pass ] 1426 main.mdev-35721-ubsan [ pass ] 57 ReplayTest: Loading context main.mdev13607 [ pass ] 227 main.mdev_32854 [ pass ] 2181 ReplayTest: Loading context main.mrr_derived_crash_4610 [ pass ] 44 main.multi_update_innodb [ pass ] 158 main.mysql57nopart [ pass ] 6 main.mysql_tzinfo_to_sql_symlink [ pass ] 213 main.mysql_upgrade_noengine [ pass ] 2646 main.mysql_upgrade_ssl [ pass ] 647 main.mysqldump-order-by-size [ pass ] 47 main.mysqldump-system 'unix' [ pass ] 242 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1261 ReplayTest: Loading context main.opt_hints_subquery_innodb [ pass ] 24 main.opt_trace_index_merge_innodb [ pass ] 283 main.parser_bug21114_innodb [ pass ] 1836 main.percona_nonflushing_analyze_debug [ pass ] 12 main.progress_976225 [ pass ] 28 main.ps_innodb [ pass ] 22 main.ps_missed_cmds [ pass ] 49 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 ] 511 main.query_cache_innodb [ pass ] 70 main.read_only_innodb [ pass ] 50 main.reopen_temp_table [ pass ] 35 ReplayTest: Loading context main.rowid_order_innodb [ pass ] 54 main.servers [ pass ] 42 main.show_analyze [ pass ] 1000 main.show_analyze_json [ pass ] 1181 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.show_explain_json [ pass ] 1250 main.show_explain_non_select [ pass ] 107 main.simultaneous_assignment [ pass ] 29 main.single_delete_update_innodb [ pass ] 11 main.sp-group [ pass ] 20 main.sp-innodb [ pass ] 4042 main.ssl_and_innodb [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.stat_tables_disabled [ pass ] 2390 main.statistics_upgrade_not_done [ pass ] 1925 main.strict_autoinc_2innodb [ pass ] 9 main.subselect-crash_15755 [ pass ] 51 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Query error: Cannot delete or update a parent row: a foreign key constraint fails ReplayTest: In file "/home/srikanth/server/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 "/home/srikanth/server/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-05-25 09:14:26 CURRENT_TEST: main.subselect2 --- /home/srikanth/server/mysql-test/main/subselect2.result 2026-04-22 18:12:11.977628625 +0530 +++ /home/srikanth/server/mysql-test/main/subselect2.reject 2026-05-25 09:14:25.781308363 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.subselect2/' main.subselect_nulls_innodb [ pass ] 12 main.system_mysql_db_fix40123 [ pass ] 404 main.system_mysql_db_fix50030 [ pass ] 405 main.system_mysql_db_fix50117 [ pass ] 396 main.system_mysql_db_fix50568 [ pass ] 401 main.tablelock [ pass ] 23 main.tmp_table_error [ pass ] 116 main.transaction_timeout [ pass ] 8026 main.trigger-trans [ pass ] 2076 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.type_bit_innodb [ pass ] 120 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 199 main.type_num_innodb [ pass ] 44 main.type_temporal_innodb [ pass ] 35 main.type_time_hires [ pass ] 57 main.type_timestamp_hires [ pass ] 53 main.union_innodb [ pass ] 18 main.unique [ pass ] 11 main.unsafe_binlog_innodb [ pass ] 2099 ReplayTest: Loading context ReplayTest: Loading context main.update_innodb [ pass ] 2394 main.vector_symlink [ pass ] 18 main.warnings_debug [ pass ] 8 main.xa [ pass ] 57278 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 ] 777 main.plugin_loaderr [ pass ] 1408 main.mysql_upgrade-28915 [ pass ] 1252 main.alter_table_combinations 'innodb' [ pass ] 87 main.myisam-blob [ pass ] 341 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 189 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:15:55 CURRENT_TEST: main.select_pkeycache --- /home/srikanth/server/mysql-test/main/select_pkeycache.result 2026-04-22 18:12:11.961620619 +0530 +++ /home/srikanth/server/mysql-test/main/select_pkeycache.reject 2026-05-25 09:15:55.299191954 +0530 @@ -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 369. 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 369. 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 369. 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 369. 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 ` `; @@ -5703,7 +5710,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 '/home/srikanth/server/bld/mysql-test/var/log/main.select_pkeycache-nm/' main.locale [ pass ] 23 main.ctype_cp932_binlog_stm [ pass ] 661 main.partition_binlog [ pass ] 42 main.compound [ pass ] 80 main.create_drop_binlog [ pass ] 43 main.create_drop_function [ pass ] 8 main.ctype_gbk_binlog [ pass ] 35 main.flush_and_binlog [ pass ] 5012 main.mdev-31636 [ pass ] 2 main.multi_update_binlog [ pass ] 65 main.mysql_binary_mode [ pass ] 95 main.mysql_binary_zero_insert [ pass ] 117 main.mysql_upgrade_view [ pass ] 1951 main.mysqlbinlog_raw_mode [ pass ] 92 main.mysqldump_restore [ pass ] 319 main.mysqltest [ pass ] 9695 main.ps_change_master [ pass ] 10 main.trigger_wl3253 [ pass ] 138 main.user_var-binlog [ pass ] 40 main.system_mysql_db_error_log [ pass ] 37 main.show_check [ pass ] 159 main.status [ pass ] 9133 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:16:29 CURRENT_TEST: main.union --- /home/srikanth/server/mysql-test/main/union.result 2026-04-22 18:12:11.995637632 +0530 +++ /home/srikanth/server/mysql-test/main/union.reject 2026-05-25 09:16:29.336663914 +0530 @@ -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 ALL NULL NULL NULL NULL NULL Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.union/' main.multi_statement [ pass ] 8 main.log_slow_filter [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context main.explain_slowquerylog [ pass ] 25 main.analyze_stmt_slow_query_log [ pass ] 13 main.partition_blackhole [ pass ] 9 main.blackhole [ pass ] 11 main.mysqldump-compat [ pass ] 83 ReplayTest: Loading context ReplayTest: Loading context main.func_encrypt [ pass ] 42 main.ssl_7937 'nossl' [ pass ] 46 main.ssl_autoverify 'auto,unix' [ pass ] 462 main.cli_options_force_protocol_win [ skipped ] Need windows main.mysqldump-win [ skipped ] Need windows main.ssl_autoverify 'pem,unix' [ pass ] 470 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 ] 1921 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:16:43 CURRENT_TEST: main.selectivity --- /home/srikanth/server/mysql-test/main/selectivity.result 2026-04-22 18:12:11.962621119 +0530 +++ /home/srikanth/server/mysql-test/main/selectivity.reject 2026-05-25 09:16:43.262468962 +0530 @@ -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` = <`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` = <`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 @@ -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 7.94 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.30 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 7.94 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.30 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 @@ -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 '/home/srikanth/server/bld/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-05-25 09:16:45 CURRENT_TEST: main.stat_tables --- /home/srikanth/server/mysql-test/main/stat_tables.result 2026-04-22 16:18:41.467031227 +0530 +++ /home/srikanth/server/mysql-test/main/stat_tables.reject 2026-05-25 09:16:45.264441910 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:16:46 CURRENT_TEST: main.limit_rows_examined --- /home/srikanth/server/mysql-test/main/limit_rows_examined.result 2026-05-06 15:05:32.393048641 +0530 +++ /home/srikanth/server/mysql-test/main/limit_rows_examined.reject 2026-05-25 09:16:45.958432584 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.limit_rows_examined/' ***Warnings generated in error logs during shutdown after running tests: main.limit_rows_examined 2026-05-25 9:16:45 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-05-25 9:16:45 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 ] 89 main.opt_trace [ pass ] 805 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 313 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:16:48 CURRENT_TEST: main.sargable_date_cond --- /home/srikanth/server/mysql-test/main/sargable_date_cond.result 2026-04-22 18:12:11.959619618 +0530 +++ /home/srikanth/server/mysql-test/main/sargable_date_cond.reject 2026-05-25 09:16:48.779394998 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.sargable_date_cond/' main.sp [ pass ] 7068 main.partition_not_blackhole [ pass ] 9 main.partition_example [ pass ] 13 main.partition_not_windows [ pass ] 21 main.assign_key_cache [ pass ] 13 main.auto_increment_ranges_myisam [ pass ] 38 ReplayTest: Loading context ReplayTest: Loading context main.column_compression_parts [ pass ] 123 main.ctype_partitions [ pass ] 16 main.ctype_uca_partitions [ pass ] 20 main.drop_bad_db_type [ pass ] 19 main.enforce_storage_engine [ pass ] 25 ReplayTest: Loading context ReplayTest: Loading context main.explain_json_format_partitions [ pass ] 29 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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-05-25 09:17:00 CURRENT_TEST: main.explain_non_select --- /home/srikanth/server/mysql-test/main/explain_non_select.result 2026-04-22 18:12:11.885582589 +0530 +++ /home/srikanth/server/mysql-test/main/explain_non_select.reject 2026-05-25 09:17:00.193247750 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.explain_non_select/' main.huge_frm-6224 [ pass ] 2611 main.identifier_partition [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 289 main.information_schema_part [ pass ] 29 main.lock [ pass ] 90 ReplayTest: Loading context main.long_unique [ pass ] 224 main.partition_bug18198 [ pass ] 12 main.partition_cache_myisam [ pass ] 937 main.partition_charset [ pass ] 14 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.partition_column [ pass ] 141 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.partition_column_prune [ pass ] 76 main.partition_csv [ pass ] 23 main.partition_datatype_32 [ skipped ] Need a 32 bit timestamps main.partition_datatype_64 [ 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 main.partition_default [ pass ] 336 main.partition_error [ pass ] 203 main.partition_grant [ 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 main.partition_hash [ pass ] 117 main.partition_key_cache [ pass ] 287 ReplayTest: Loading context ReplayTest: Loading context main.partition_list [ pass ] 77 main.partition_mgm [ pass ] 21 main.partition_mgm_err [ pass ] 44 main.partition_mgm_err2 [ 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_mrr_aria [ fail ] Test ended at 2026-05-25 09:17:10 CURRENT_TEST: main.partition_mrr_aria --- /home/srikanth/server/mysql-test/main/partition_mrr_aria.result 2026-04-22 18:12:11.946613113 +0530 +++ /home/srikanth/server/mysql-test/main/partition_mrr_aria.reject 2026-05-25 09:17:10.570120519 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:17:11 CURRENT_TEST: main.partition_mrr_myisam --- /home/srikanth/server/mysql-test/main/partition_mrr_myisam.result 2026-04-22 18:12:11.946613113 +0530 +++ /home/srikanth/server/mysql-test/main/partition_mrr_myisam.reject 2026-05-25 09:17:11.157113504 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.partition_mrr_myisam/' main.partition_myisam [ pass ] 1045 ReplayTest: Loading context main.partition_order [ pass ] 106 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 4323 main.partition_rename_longfilename [ pass ] 14 main.partition_sp [ pass ] 7 main.partition_symlink [ pass ] 41 main.partition_sync [ pass ] 25 main.partition_truncate [ pass ] 8 main.partition_ucs2 [ pass ] 5 main.partition_utf8 [ pass ] 13 main.partition_utf8-debug [ pass ] 23 main.partition_windows [ skipped ] Need windows main.ps_mem_leaks [ pass ] 70 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.sargable_casefold_part [ pass ] 42 main.stat_tables_partition [ pass ] 17 main.vector_partition [ pass ] 8 main.mysql_client_test_comp [ pass ] 35411 main.ssl_7937 'x509v3' [ pass ] 96 main.ssl_verify_ip [ pass ] 34 main.ssl_7937 'ssl' [ pass ] 72 main.failed_auth_unixsocket [ pass ] 1018 main.password_expiration_unix_socket [ pass ] 22 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.func_misc [ pass ] 2750 main.plugin_load [ pass ] 3 main.plugin_load_option [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:18:10 CURRENT_TEST: main.index_merge_myisam --- /home/srikanth/server/mysql-test/main/index_merge_myisam.result 2026-04-22 18:12:11.904592097 +0530 +++ /home/srikanth/server/mysql-test/main/index_merge_myisam.reject 2026-05-25 09:18:09.904508159 +0530 @@ -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 831. 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 '/home/srikanth/server/bld/mysql-test/var/log/main.index_merge_myisam/' main.analyze_format_json [ pass ] 1715 main.ctype_utf8mb4_0900_ai_ci_casefold [ pass ] 1821 main.ctype_utf8mb4_general1400_as_ci_casefold [ pass ] 1777 main.ctype_utf8mb4_general_ci_casefold [ pass ] 1782 main.ctype_utf8mb4_general_ci_ws [ pass ] 1487 main.ctype_utf8mb4_turkish_ci_casefold [ pass ] 2135 main.ctype_utf8mb4_uca1400_ai_ci_casefold [ pass ] 1780 main.ctype_utf8mb4_unicode_520_ci_casefold [ pass ] 1772 main.ctype_utf8mb4_unicode_ci_casefold [ pass ] 1765 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:18:30 CURRENT_TEST: main.order_by --- /home/srikanth/server/mysql-test/main/order_by.result 2026-05-06 15:05:32.402048756 +0530 +++ /home/srikanth/server/mysql-test/main/order_by.reject 2026-05-25 09:18:30.476339026 +0530 @@ -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 1059. 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 605 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 '/home/srikanth/server/bld/mysql-test/var/log/main.order_by/' ***Warnings generated in error logs during shutdown after running tests: main.ctype_utf8mb4_turkish_ci_casefold main.ctype_utf8mb4_uca1400_ai_ci_casefold main.ctype_utf8mb4_general1400_as_ci_casefold main.order_by main.ctype_utf8mb4_general_ci_ws main.ctype_utf8mb4_0900_ai_ci_casefold main.ctype_utf8mb4_unicode_ci_casefold main.ctype_utf8mb4_general_ci_casefold main.analyze_format_json main.ctype_utf8mb4_unicode_520_ci_casefold 2026-05-25 9:18:29 41 [ERROR] mariadbd: Out of sort memory, consider increasing server sort buffer size ReplayTest: Loading context main.rowid_filter_myisam_debug [ pass ] 57 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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 main.subselect_mat [ fail ] Test ended at 2026-05-25 09:18:32 CURRENT_TEST: main.subselect_mat --- /home/srikanth/server/mysql-test/main/subselect_mat.result 2026-04-22 18:12:11.980630126 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_mat.reject 2026-05-25 09:18:32.635322495 +0530 @@ -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 <`test`.`t1_16`.`a1`>((`test`.`t1_16`.`a1`,`test`.`t1_16`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` ), (`test`.`t1_16`.`a1` in on distinct_key where `test`.`t1_16`.`a1` = ``.`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 <`test`.`t1_16`.`a1`>((`test`.`t1_16`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` having (`test`.`t1_16`.`a1`) = (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 <`test`.`t1_512`.`a1`>((`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` ), (`test`.`t1_512`.`a1` in on distinct_key where `test`.`t1_512`.`a1` = ``.`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 <`test`.`t1_512`.`a1`>((`test`.`t1_512`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having (`test`.`t1_512`.`a1`) = (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 <`test`.`t1_512`.`a1`>((`test`.`t1_512`.`a1`,`test`.`t1_512`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` ), (`test`.`t1_512`.`a1` in on distinct_key where `test`.`t1_512`.`a1` = ``.`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 <`test`.`t1_512`.`a1`>((`test`.`t1_512`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having (`test`.`t1_512`.`a1`) = (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 <`test`.`t1_1024`.`a1`>((`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` ), (`test`.`t1_1024`.`a1` in on distinct_key where `test`.`t1_1024`.`a1` = ``.`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 <`test`.`t1_1024`.`a1`>((`test`.`t1_1024`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having (`test`.`t1_1024`.`a1`) = (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 <`test`.`t1_1024`.`a1`>((`test`.`t1_1024`.`a1`,`test`.`t1_1024`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` ), (`test`.`t1_1024`.`a1` in on distinct_key where `test`.`t1_1024`.`a1` = ``.`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 <`test`.`t1_1024`.`a1`>((`test`.`t1_1024`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having (`test`.`t1_1024`.`a1`) = (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 <`test`.`t1_1025`.`a1`>((`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` ), (`test`.`t1_1025`.`a1` in on distinct_key where `test`.`t1_1025`.`a1` = ``.`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 <`test`.`t1_1025`.`a1`>((`test`.`t1_1025`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having (`test`.`t1_1025`.`a1`) = (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 <`test`.`t1_1025`.`a1`>((`test`.`t1_1025`.`a1`,`test`.`t1_1025`.`a1` in ( (/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` ), (`test`.`t1_1025`.`a1` in on distinct_key where `test`.`t1_1025`.`a1` = ``.`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 <`test`.`t1_1025`.`a1`>((`test`.`t1_1025`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having (`test`.`t1_1025`.`a1`) = (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 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 @@ -2920,7 +2912,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 +2929,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 '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_mat/' main.opt_context_replay_basic [ pass ] 85 main.multi_update_big [ pass ] 16632 ReplayTest: Loading context main.error_simulation [ pass ] 31 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.selectivity_notembedded [ fail ] Test ended at 2026-05-25 09:18:51 CURRENT_TEST: main.selectivity_notembedded --- /home/srikanth/server/mysql-test/main/selectivity_notembedded.result 2026-04-22 16:18:41.461031438 +0530 +++ /home/srikanth/server/mysql-test/main/selectivity_notembedded.reject 2026-05-25 09:18:51.453187979 +0530 @@ -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 { @@ -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. @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.selectivity_notembedded/' main.stat_tables_myisam_debug [ 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.bool [ pass ] 88 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:18:53 CURRENT_TEST: main.cset_narrowing --- /home/srikanth/server/mysql-test/main/cset_narrowing.result 2026-04-22 18:12:11.851565576 +0530 +++ /home/srikanth/server/mysql-test/main/cset_narrowing.reject 2026-05-25 09:18:52.905178299 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.cset_narrowing/' main.ctype_ucs2_general_ci_casefold [ pass ] 799 main.ctype_ucs2_general_ci_ws [ pass ] 274 main.ctype_ucs2_general_mysql500_ci_casefold [ pass ] 773 main.ctype_ucs2_general_mysql500_ci_ws [ pass ] 247 main.ctype_ucs2_turkish_ci_casefold [ pass ] 792 main.ctype_ucs2_unicode_520_ci_casefold [ pass ] 880 main.ctype_utf8mb3_general_ci_casefold [ pass ] 807 main.ctype_utf8mb3_general_ci_ws [ pass ] 227 main.ctype_utf8mb3_general_mysql500_ci_casefold [ pass ] 815 main.ctype_utf8mb3_general_mysql500_ci_ws [ pass ] 245 main.ctype_utf8mb3_turkish_ci_casefold [ pass ] 872 main.ctype_utf8mb3_unicode_520_ci_casefold [ pass ] 856 main.ctype_utf8mb4_general1400_as_ci_ws [ pass ] 3179 main.delete_returning [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1774 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:19:11 CURRENT_TEST: main.derived_cond_pushdown --- /home/srikanth/server/mysql-test/main/derived_cond_pushdown.result 2026-05-06 15:05:32.380048475 +0530 +++ /home/srikanth/server/mysql-test/main/derived_cond_pushdown.reject 2026-05-25 09:19:11.500063047 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:19:13 CURRENT_TEST: main.derived_view --- /home/srikanth/server/mysql-test/main/derived_view.result 2026-05-06 15:05:32.381048487 +0530 +++ /home/srikanth/server/mysql-test/main/derived_view.reject 2026-05-25 09:19:13.614050948 +0530 @@ -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 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 system NULL NULL NULL NULL 1 -2 DERIVED system NULL NULL NULL NULL 1 +1 PRIMARY 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 '/home/srikanth/server/bld/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 ] 571 main.distinct_notembedded [ pass ] 29 main.errors [ 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: 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-05-25 09:19:16 CURRENT_TEST: main.explain_json --- /home/srikanth/server/mysql-test/main/explain_json.result 2026-04-22 18:12:11.885582589 +0530 +++ /home/srikanth/server/mysql-test/main/explain_json.reject 2026-05-25 09:19:15.901038082 +0530 @@ -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 '/home/srikanth/server/bld/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 ] 203 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 ] 1607 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:19:19 CURRENT_TEST: main.func_str --- /home/srikanth/server/mysql-test/main/func_str.result 2026-05-06 15:05:32.384048526 +0530 +++ /home/srikanth/server/mysql-test/main/func_str.reject 2026-05-25 09:19:19.270019566 +0530 @@ -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,28 +5825,36 @@ 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c select * from t where 'bb' = left(c, 2); c bba @@ -5858,19 +5862,25 @@ 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(b%_c\0) <= (c) <= (b%_cÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c select * from t where substr(c, 1, 2) = substr('bb1', 1, 2); c bba @@ -5880,28 +5890,40 @@ 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(80\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (a) <= (80ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(80\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (a) <= (80ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(80\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (a) <= (80ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t1 and index_name a 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 t range c c 8 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. [(bb\0\0\0) <= (c) <= (bbÿÿÿ), ] doesn't exist in the list of ranges for table_name test.t and index_name c 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 '/home/srikanth/server/bld/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 ] 1144 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.group_by_cardinality [ fail ] Test ended at 2026-05-25 09:19:21 CURRENT_TEST: main.group_by_cardinality --- /home/srikanth/server/mysql-test/main/group_by_cardinality.result 2026-04-22 16:18:41.421032847 +0530 +++ /home/srikanth/server/mysql-test/main/group_by_cardinality.reject 2026-05-25 09:19:21.288008717 +0530 @@ -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 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join) +1 PRIMARY 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 ALL NULL NULL NULL NULL 20 Using join buffer (flat, BNL join) +1 PRIMARY 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 ALL NULL NULL NULL NULL 209 Using join buffer (flat, BNL join) +1 PRIMARY 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 '/home/srikanth/server/bld/mysql-test/var/log/main.group_by_cardinality/' main.information_schema_tables [ pass ] 236 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-05-25 09:19:22 CURRENT_TEST: main.insert_returning --- /home/srikanth/server/mysql-test/main/insert_returning.result 2026-04-22 16:18:41.427032635 +0530 +++ /home/srikanth/server/mysql-test/main/insert_returning.reject 2026-05-25 09:19:22.274003482 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.insert_returning/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.join [ pass ] 1115 main.join_cache_cardinality [ pass ] 18 main.join_cache_debug [ pass ] 649 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 461 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 515 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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 "/home/srikanth/server/mysql-test/main/key.test" ReplayTest: At line 632 main.key [ fail ] Test ended at 2026-05-25 09:19:26 CURRENT_TEST: main.key --- /home/srikanth/server/mysql-test/main/key.result 2026-04-22 18:12:11.913596600 +0530 +++ /home/srikanth/server/mysql-test/main/key.reject 2026-05-25 09:19:26.687980575 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.key/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.log_slow_debug [ pass ] 136 main.max_session_mem_used [ pass ] 24 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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-05-25 09:19:33 CURRENT_TEST: main.myisam_explain_non_select_all --- /home/srikanth/server/mysql-test/main/myisam_explain_non_select_all.result 2026-05-06 15:05:32.394048654 +0530 +++ /home/srikanth/server/mysql-test/main/myisam_explain_non_select_all.reject 2026-05-25 09:19:33.133948659 +0530 @@ -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 (`test`.`t1`.`a1`,(/* select#2 */ select `test`.`t2`.`a2` from `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); @@ -1013,7 +1055,8 @@ Note 1003 /* select#1 */ select `test`.`t1`.`a1` AS `a1` from `test`.`t1` where <`test`.`t1`.`a1`>((`test`.`t1`.`a1`,(/* select#2 */ select `test`.`t2`.`a2` from `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 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 @@ -1128,7 +1175,8 @@ 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 <`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 '/home/srikanth/server/bld/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 ] 404 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 357 main.natural_sort_key [ pass ] 656 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 170 main.opt_context_load_stats_basic [ pass ] 87 main.opt_context_store_stats [ pass ] 82 ReplayTest: Loading context main.opt_hint_timeout [ pass ] 972 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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-05-25 09:19:38 CURRENT_TEST: main.opt_hints --- /home/srikanth/server/mysql-test/main/opt_hints.result 2026-04-22 18:12:11.937608609 +0530 +++ /home/srikanth/server/mysql-test/main/opt_hints.reject 2026-05-25 09:19:38.670922692 +0530 @@ -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 (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 (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 (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 (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 '/home/srikanth/server/bld/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 ] 297 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 232 main.opt_trace_selectivity [ pass ] 368 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:19:41 CURRENT_TEST: main.opt_tvc --- /home/srikanth/server/mysql-test/main/opt_tvc.result 2026-04-22 18:12:11.942611111 +0530 +++ /home/srikanth/server/mysql-test/main/opt_tvc.reject 2026-05-25 09:19:40.877912707 +0530 @@ -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 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 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 eq_ref distinct_key distinct_key 4 test.t1.a 1 100.00 -1 PRIMARY 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 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 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 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 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 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 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 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 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 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 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 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 (((1,2)),((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 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 (((1,2)),((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 (((1,2)),((8,9))) and (`test`.`t2`.`a`,`test`.`t2`.`c`) in (((1,3)),((8,0)),((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 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`.`a`,`test`.`t1`.`b`>(((`test`.`t1`.`a`,`test`.`t1`.`b`),(((`test`.`t1`.`a`) in on distinct_key where trigcond((`test`.`t1`.`a`) = `tvc_0`.`_col_1`) and trigcond((`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 (((1,2)),((8,9)),((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 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 !<`test`.`t1`.`a`,`test`.`t1`.`b`>(((`test`.`t1`.`a`,`test`.`t1`.`b`),(((`test`.`t1`.`a`) in on distinct_key where trigcond((`test`.`t1`.`a`) = `tvc_0`.`_col_1`) and trigcond((`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 (((1,2)),((8,9)),((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 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 !<`test`.`t2`.`a`,`test`.`t2`.`c`>(((`test`.`t2`.`a`,`test`.`t2`.`c`),(((`test`.`t2`.`a`) in on distinct_key where trigcond((`test`.`t2`.`a`) = `tvc_0`.`_col_1`) and trigcond((`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 (((1,2)),((8,9)),((5,1))) drop table t1, t2, t3; set @@in_predicate_conversion_threshold= default; # Result length mismatch - skipping '/home/srikanth/server/bld/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-05-25 09:19:41 CURRENT_TEST: main.order_by_limit_join --- /home/srikanth/server/mysql-test/main/order_by_limit_join.result 2026-04-22 16:18:41.446031966 +0530 +++ /home/srikanth/server/mysql-test/main/order_by_limit_join.reject 2026-05-25 09:19:41.612909431 +0530 @@ -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 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 '/home/srikanth/server/bld/mysql-test/var/log/main.order_by_limit_join/' ReplayTest: Loading context main.range_interrupted-13751 [ pass ] 28 main.range_notembedded [ pass ] 166 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:19:46 CURRENT_TEST: main.range_vs_index_merge --- /home/srikanth/server/mysql-test/main/range_vs_index_merge.result 2026-04-22 18:12:11.956618117 +0530 +++ /home/srikanth/server/mysql-test/main/range_vs_index_merge.reject 2026-05-25 09:19:46.179889576 +0530 @@ -49,13 +49,20 @@ (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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(T\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Tÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City range Population,Name Name 35 NULL 1 Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE Population > 100000 AND Name LIKE 'Aba%' OR @@ -63,7 +70,13 @@ 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 City index_merge PRIMARY,Population,Country,Name Name,PRIMARY 35,4 NULL 17 Using sort_union(Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Aba\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Abaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Aba\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Abaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Aba\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Abaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(L\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Lÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE (Population > 101000 AND Population < 115000); @@ -206,7 +219,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,11 +355,15 @@ 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 City range Name Name 35 NULL 2 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Hÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City range Name Name 35 NULL 2 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((ID < 10) AND (Name LIKE 'H%' OR (Country > 'A' AND Country < 'ARG'))) @@ -354,20 +371,32 @@ (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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Hÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Hÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City index_merge PRIMARY,Population,Country,Name Name,Country,Population 35,3,4 NULL 81 Using sort_union(Name,Country,Population); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City index_merge PRIMARY,Population,Country,Name Name,Country,Population 35,3,4 NULL 54 Using sort_union(Name,Country,Population); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Ha\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Haÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +636,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 City range Name Name 35 NULL 1 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 102000) AND @@ -615,7 +646,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 City index_merge PRIMARY,Population,Country,Name Country,Name,Population 3,35,4 NULL 45 Using sort_union(Country,Name,Population); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 110000) AND @@ -624,6 +657,9 @@ (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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name SELECT * FROM City USE INDEX () WHERE ((Population > 101000 AND Population < 102000) AND (Country < 'C' OR Name BETWEEN 'P' AND 'S')) OR @@ -678,11 +714,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 City range Name Name 35 NULL 1 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pas\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pasÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City range Name Name 35 NULL 1 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +740,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 City index_merge Population,Country,Name,CountryPopulation CountryPopulation,Name 7,35 NULL 11 Using sort_union(CountryPopulation,Name); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pas\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pasÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name SELECT * FROM City WHERE ((Population > 101000 AND Population < 103000) OR Name LIKE 'Pas%') AND Country='USA'; @@ -795,7 +839,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 City range Name Name 35 NULL 1 Using index condition +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name set @tmp_range_vs_index_merge=@@optimizer_switch; set optimizer_switch='extended_keys=off'; EXPLAIN @@ -804,14 +850,20 @@ 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 index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name,PRIMARY 35,4 NULL 12 Using sort_union(Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName 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 City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name,PRIMARY 35,4 NULL 6 Using sort_union(Name,PRIMARY); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 110000) OR @@ -867,7 +919,15 @@ 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 City index_merge PRIMARY,Population,Country,Name,CountryPopulation,CountryName CountryPopulation,PRIMARY,Name 7,4,35 NULL 26 Using sort_union(CountryPopulation,PRIMARY,Name); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(BRA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (BRA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (USA) <= (Country) <= (USA), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX () WHERE ((Population > 101000 and Population < 102000) OR ID BETWEEN 3790 AND 3800) AND Country='USA' @@ -950,7 +1010,10 @@ 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 City range PRIMARY,Population,Country,Name,CountryPopulation,CountryName Name 35 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. [(P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,P\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Pÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName EXPLAIN SELECT * FROM City WHERE ((Population > 101000 AND Population < 11000) OR @@ -958,6 +1021,9 @@ 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(Pho\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Phoÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pho\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Phoÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX () WHERE ((Population > 101000 AND Population < 11000) OR ID BETWEEN 3500 AND 3800) AND Country='USA' @@ -992,7 +1058,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 City index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 4 Using sort_union(CountryPopulation,CountryName); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX() WHERE Country='USA' AND Population BETWEEN 101000 AND 102000 OR Country='USA' AND Name LIKE 'Pa%'; @@ -1022,7 +1090,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 City index_merge Country,CountryPopulation,CountryName CountryPopulation,CountryName 7,38 NULL 4 Using sort_union(CountryPopulation,CountryName); Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,Pa\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Paÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City WHERE Country='USA' AND (Population BETWEEN 101000 AND 102000 OR Name LIKE 'Pa%'); @@ -1381,7 +1451,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 '/home/srikanth/server/bld/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-05-25 09:19:48 CURRENT_TEST: main.rowid_filter_myisam --- /home/srikanth/server/mysql-test/main/rowid_filter_myisam.result 2026-04-22 18:12:11.959619618 +0530 +++ /home/srikanth/server/mysql-test/main/rowid_filter_myisam.reject 2026-05-25 09:19:48.131881361 +0530 @@ -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": { @@ -333,7 +305,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 643. analyze format=json select * from t1 where nm like '500%' AND fl2 = 0; ANALYZE @@ -393,7 +367,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 643. analyze format=json select * from t1 where nm like '500%' AND fl2 = 0; ANALYZE @@ -456,7 +432,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 643. select * from t1 where nm like '607%' AND fl2 = 0; pk nm fl1 fl2 721 607 0 0 @@ -478,7 +456,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 647. analyze format=json select * from t1 where nm like '75%' AND fl2 = 0; ANALYZE Result length mismatch - skipping '/home/srikanth/server/bld/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-05-25 09:19:48 CURRENT_TEST: main.rownum --- /home/srikanth/server/mysql-test/main/rownum.result 2026-04-22 16:18:41.457031579 +0530 +++ /home/srikanth/server/mysql-test/main/rownum.reject 2026-05-25 09:19:48.804878567 +0530 @@ -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 '/home/srikanth/server/bld/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 ] 366 main.sargable_casefold_notembedded [ pass ] 7 main.slowlog_enospace-10508 [ pass ] 73 main.sp-big [ pass ] 2092 main.sp-row [ pass ] 385 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.stat_tables_flush [ pass ] 82 main.statistics_upgrade [ pass ] 680 main.status_debug [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:19:57 CURRENT_TEST: main.subselect --- /home/srikanth/server/mysql-test/main/subselect.result 2026-04-22 18:12:11.976628125 +0530 +++ /home/srikanth/server/mysql-test/main/subselect.reject 2026-05-25 09:19:57.570843898 +0530 @@ -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; @@ -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 '/home/srikanth/server/bld/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-05-25 09:19:59 CURRENT_TEST: main.subselect4 --- /home/srikanth/server/mysql-test/main/subselect4.result 2026-05-06 15:05:32.411048871 +0530 +++ /home/srikanth/server/mysql-test/main/subselect4.reject 2026-05-25 09:19:59.774835683 +0530 @@ -1756,7 +1756,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 +1778,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 +1800,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 +1816,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 +2518,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 (`test`.`t2`.`a`,(/* select#2 */ select `test`.`t2`.`b` from `test`.`t1` where (`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 +2596,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 ALL NULL NULL NULL NULL NULL @@ -2773,9 +2764,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 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 +3288,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 '/home/srikanth/server/bld/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 ] 502 ReplayTest: Loading context main.subselect_firstmatch [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:20:04 CURRENT_TEST: main.subselect_no_exists_to_in --- /home/srikanth/server/mysql-test/main/subselect_no_exists_to_in.result 2026-04-22 18:12:11.981630626 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_no_exists_to_in.reject 2026-05-25 09:20:04.428818998 +0530 @@ -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; @@ -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 '/home/srikanth/server/bld/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-05-25 09:20:08 CURRENT_TEST: main.subselect_no_mat --- /home/srikanth/server/mysql-test/main/subselect_no_mat.result 2026-04-22 18:12:11.981630626 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_no_mat.reject 2026-05-25 09:20:08.051806618 +0530 @@ -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; @@ -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 '/home/srikanth/server/bld/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-05-25 09:20:12 CURRENT_TEST: main.subselect_no_opts --- /home/srikanth/server/mysql-test/main/subselect_no_opts.result 2026-04-22 18:12:11.982631127 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_no_opts.reject 2026-05-25 09:20:11.789794411 +0530 @@ -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; @@ -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 '/home/srikanth/server/bld/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-05-25 09:20:16 CURRENT_TEST: main.subselect_no_scache --- /home/srikanth/server/mysql-test/main/subselect_no_scache.result 2026-04-22 18:12:11.982631127 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_no_scache.reject 2026-05-25 09:20:16.697779236 +0530 @@ -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; @@ -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 '/home/srikanth/server/bld/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-05-25 09:20:21 CURRENT_TEST: main.subselect_no_semijoin --- /home/srikanth/server/mysql-test/main/subselect_no_semijoin.result 2026-04-22 18:12:11.982631127 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_no_semijoin.reject 2026-05-25 09:20:21.657764876 +0530 @@ -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; @@ -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 '/home/srikanth/server/bld/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 ] 748 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:20:28 CURRENT_TEST: main.subselect_sj_jcl6 --- /home/srikanth/server/mysql-test/main/subselect_sj_jcl6.result 2026-04-22 18:12:11.984632128 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_sj_jcl6.reject 2026-05-25 09:20:28.180747470 +0530 @@ -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 (<`test`.`t2`.`d`,`test`.`t1`.`b`>((`test`.`t2`.`d`,(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and (`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 (<`test`.`t2`.`d`,`test`.`t1`.`b`>((`test`.`t2`.`d`,(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and (`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 '/home/srikanth/server/bld/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 main.subselect_sj_mat [ fail ] Test ended at 2026-05-25 09:20:30 CURRENT_TEST: main.subselect_sj_mat --- /home/srikanth/server/mysql-test/main/subselect_sj_mat.result 2026-04-22 18:12:11.984632128 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_sj_mat.reject 2026-05-25 09:20:30.664741281 +0530 @@ -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 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 (<`test`.`t2`.`b2`,`test`.`t1`.`a1`>((`test`.`t2`.`b2`,(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and (`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <`test`.`t2`.`b2`>((`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), (`test`.`t2`.`b2` in on distinct_key where `test`.`t2`.`b2` = ``.`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 (<`test`.`t2`.`b2`,`test`.`t1`.`a1`>((`test`.`t2`.`b2`,(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and (`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <`test`.`t2`.`b2`>((`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), (`test`.`t2`.`b2` in on distinct_key where `test`.`t2`.`b2` = ``.`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 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 (<`test`.`t2`.`b2`>((`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( (/* select#3 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%02' ), (`test`.`t2`.`b2` in on distinct_key where `test`.`t2`.`b2` = ``.`c2`)))) or <`test`.`t2`.`b2`>((`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( (/* select#4 */ select `test`.`t3`.`c2` from `test`.`t3` where `test`.`t3`.`c2` like '%03' ), (`test`.`t2`.`b2` in on distinct_key where `test`.`t2`.`b2` = ``.`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,15 +529,15 @@ 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 (<`test`.`t2`.`b2`,`test`.`t1`.`a1`>((`test`.`t2`.`b2`,(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and (`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <`test`.`t2`.`b2`>((`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), (`test`.`t2`.`b2` in on distinct_key where `test`.`t2`.`b2` = ``.`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 (<`test`.`t2`.`b2`,`test`.`t1`.`a1`>((`test`.`t2`.`b2`,(/* select#3 */ select `test`.`t3a`.`c2` from `test`.`t3` `t3a` where `test`.`t3a`.`c1` = `test`.`t1`.`a1` and (`test`.`t2`.`b2`) = `test`.`t3a`.`c2`))) or <`test`.`t2`.`b2`>((`test`.`t2`.`b2`,`test`.`t2`.`b2` in ( (/* select#4 */ select `test`.`t3b`.`c2` from `test`.`t3` `t3b` where `test`.`t3b`.`c2` like '%03' ), (`test`.`t2`.`b2` in on distinct_key where `test`.`t2`.`b2` = ``.`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 @@ -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 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 (/* 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` = ``.`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 <`test`.`t1_16`.`a1`>((`test`.`t1_16`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_16`.`b1` separator ',') from `test`.`t2_16` group by `test`.`t2_16`.`b2` having (`test`.`t1_16`.`a1`) = (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 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 (/* 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` = ``.`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 <`test`.`t1_512`.`a1`>((`test`.`t1_512`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having (`test`.`t1_512`.`a1`) = (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 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 (/* 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` = ``.`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 <`test`.`t1_512`.`a1`>((`test`.`t1_512`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_512`.`b1` separator ',') from `test`.`t2_512` group by `test`.`t2_512`.`b2` having (`test`.`t1_512`.`a1`) = (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 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 (/* 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` = ``.`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 <`test`.`t1_1024`.`a1`>((`test`.`t1_1024`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having (`test`.`t1_1024`.`a1`) = (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 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 (/* 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` = ``.`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 <`test`.`t1_1024`.`a1`>((`test`.`t1_1024`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1024`.`b1` separator ',') from `test`.`t2_1024` group by `test`.`t2_1024`.`b2` having (`test`.`t1_1024`.`a1`) = (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 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 (/* 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` = ``.`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 <`test`.`t1_1025`.`a1`>((`test`.`t1_1025`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having (`test`.`t1_1025`.`a1`) = (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 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 (/* 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` = ``.`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 <`test`.`t1_1025`.`a1`>((`test`.`t1_1025`.`a1`,(/* select#2 */ select group_concat(`test`.`t2_1025`.`b1` separator ',') from `test`.`t2_1025` group by `test`.`t2_1025`.`b2` having (`test`.`t1_1025`.`a1`) = (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 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 Result length mismatch - skipping '/home/srikanth/server/bld/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: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 [ pass ] 926 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.user_var [ fail ] Test ended at 2026-05-25 09:20:32 CURRENT_TEST: main.user_var --- /home/srikanth/server/mysql-test/main/user_var.result 2026-05-06 15:05:32.418048960 +0530 +++ /home/srikanth/server/mysql-test/main/user_var.reject 2026-05-25 09:20:32.560736719 +0530 @@ -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; Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.user_var/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.vector2 [ pass ] 853 main.vector_subdist [ pass ] 1345 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 5025 main.warnings [ pass ] 49 main.skip_log_bin [ pass ] 9 ReplayTest: Loading context main.partition_disabled [ pass ] 45 main.myisam_crash_before_flush_keys [ pass ] 238 main.variables-notembedded [ pass ] 35 main.ssl_system_ca 'bad' [ pass ] 55 main.ssl_8k_key [ pass ] 58 main.ssl_timeout-9836 [ pass ] 2031 main.thread_pool_info [ pass ] 1445 main.ssl_cipher [ pass ] 3152 main.mysql_json_table_recreate [ pass ] 1593 main.mysql_upgrade_mysql_json_with_plugin_loaded [ pass ] 2170 main.lowercase_mixed_tmpdir [ pass ] 8 main.grant_lowercase [ pass ] 16 main.lowercase_view [ pass ] 17 main.lowercase_table [ pass ] 27 main.lowercase_table_grant [ pass ] 5 main.lowercase_table_qcache [ pass ] 6 main.master_retry_count_basic [ pass ] 1445 ReplayTest: Loading context 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-05-25 09:21:11 CURRENT_TEST: main.variables --- /home/srikanth/server/mysql-test/main/variables.result 2026-05-06 15:05:32.418048960 +0530 +++ /home/srikanth/server/mysql-test/main/variables.reject 2026-05-25 09:21:11.543673022 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.variables/' main.user_limits [ pass ] 42 main.count_distinct2 [ pass ] 790 main.multi_update_tiny_hash [ pass ] 12 main.myisam_recover [ pass ] 281 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:21:15 CURRENT_TEST: main.myisam --- /home/srikanth/server/mysql-test/main/myisam.result 2026-04-22 18:12:11.921600603 +0530 +++ /home/srikanth/server/mysql-test/main/myisam.reject 2026-05-25 09:21:15.435669725 +0530 @@ -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 558. 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 1431. 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 621. 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 '/home/srikanth/server/bld/mysql-test/var/log/main.myisam/' ***Warnings generated in error logs during shutdown after running tests: main.myisam 2026-05-25 9:21:15 4 [ERROR] Got an error from thread_id=4, /home/srikanth/server/storage/myisam/ha_myisam.cc:1097 2026-05-25 9:21:15 4 [ERROR] MariaDB thread id 4, OS thread handle 138717023131200, query id 3060 localhost root Checking table 2026-05-25 9:21:15 4 [ERROR] mariadbd: Table './test/t1' is marked as crashed and should be repaired main.old-mode [ pass ] 25 main.plugin_auth_qa [ pass ] 71 main.plugin_auth_qa_1 [ pass ] 303 main.plugin_auth_qa_2 [ pass ] 182 main.plugin_auth_qa_3 [ pass ] 47 main.plugin_maturity [ pass ] 3 main.handlersocket [ pass ] 7 main.plugin [ pass ] 61 main.plugin_not_embedded [ pass ] 1422 main.truncate_badse [ pass ] 9 main.query_cache_notembedded [ pass ] 6161 main.bug58669 [ pass ] 8 main.require_secure_transport [ pass ] 23 main.require_secure_transport_on [ pass ] 22 main.grant3 [ pass ] 62 main.secure_file_priv_win [ skipped ] Need windows main.skip_grants [ pass ] 4269 main.udf_skip_grants [ pass ] 2 main.flush2 [ pass ] 7 main.mysqldump-no-binlog [ pass ] 23 main.kill-2 [ pass ] 14 main.skip_name_resolve [ pass ] 9 main.my_getopt_case_insensitive [ pass ] 2 main.mysqlslap [ pass ] 2644 main.chained_ssl_certificates [ pass ] 2711 main.ssl_crl 'file' [ pass ] 42 main.ssl_crl 'path' [ pass ] 44 main.wolfssl [ pass ] 3 main.sysdate_is_now [ pass ] 1003 main.no-threads [ pass ] 4 main.shutdown_debug '1tpc' [ pass ] 1530 main.mdev-21101 [ pass ] 3310 main.shutdown_debug 'pot' [ pass ] 1526 main.tls_version [ pass ] 133 main.long_tmpdir [ pass ] 3 main.trans_read_only [ 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 main.selectivity_no_engine [ fail ] Test ended at 2026-05-25 09:21:55 CURRENT_TEST: main.selectivity_no_engine --- /home/srikanth/server/mysql-test/main/selectivity_no_engine.result 2026-04-22 18:12:11.963621619 +0530 +++ /home/srikanth/server/mysql-test/main/selectivity_no_engine.reject 2026-05-25 09:21:55.338666332 +0530 @@ -37,12 +37,12 @@ # The following two must have the same in 'Extra' column: explain extended select * from t2 where col1 IN (20, 180); id select_type table type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t2 ALL NULL NULL NULL NULL 1100 1.00 Using where +1 SIMPLE t2 ALL NULL NULL NULL NULL 1100 2.48 Using where Warnings: Note 1003 select `test`.`t2`.`col1` AS `col1` from `test`.`t2` where `test`.`t2`.`col1` in (20,180) explain extended select * from t2 where col1 IN (180, 20); id select_type table type possible_keys key key_len ref rows filtered Extra -1 SIMPLE t2 ALL NULL NULL NULL NULL 1100 1.00 Using where +1 SIMPLE t2 ALL NULL NULL NULL NULL 1100 2.48 Using where Warnings: Note 1003 select `test`.`t2`.`col1` AS `col1` from `test`.`t2` where `test`.`t2`.`col1` in (180,20) drop table t1, t2; Result content mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.selectivity_no_engine/' main.stat_tables_par [ pass ] 2293 main.mysqldump-compat-102 [ pass ] 28 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 6594 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 6830 main.query_cache_debug [ pass ] 41 main.1st [ pass ] 3 main.aborted_clients [ pass ] 4 main.adddate_454 [ pass ] 5 main.alias [ pass ] 38 main.almost_full [ pass ] 34 main.alter_table_combinations 'aria' [ pass ] 44 main.alter_table_combinations 'heap' [ pass ] 25 main.alter_table_debug [ pass ] 8 main.alter_table_locknone_notembedded [ pass ] 16 main.alter_table_mdev539_maria [ pass ] 2011 main.alter_table_mdev539_myisam [ pass ] 747 main.alter_table_upgrade_aria [ pass ] 10 main.alter_table_upgrade_myisam [ pass ] 9 main.alter_table_upgrade_myisam_debug [ pass ] 17 main.alter_user [ pass ] 28 main.analyze_debug [ pass ] 3 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.analyze_stmt [ pass ] 57 main.analyze_stmt_privileges [ pass ] 7 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-05-25 09:22:20 CURRENT_TEST: main.analyze_stmt_privileges2 --- /home/srikanth/server/mysql-test/main/analyze_stmt_privileges2.result 2026-04-22 16:18:41.395033762 +0530 +++ /home/srikanth/server/mysql-test/main/analyze_stmt_privileges2.reject 2026-05-25 09:22:19.848690516 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:22:20 CURRENT_TEST: main.ansi --- /home/srikanth/server/mysql-test/main/ansi.result 2026-04-22 18:12:11.844562073 +0530 +++ /home/srikanth/server/mysql-test/main/ansi.reject 2026-05-25 09:22:20.301691145 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.ansi/' ReplayTest: Loading context main.aria_icp_debug [ pass ] 65 main.assign_key_cache_debug [ pass ] 1006 ReplayTest: Loading context main.auto_increment [ pass ] 83 main.backup_aria [ pass ] 25 main.bad_frm_crash_5029 [ pass ] 5 main.bad_startup_options [ pass ] 2173 main.bad_startup_options_debug [ pass ] 1545 ReplayTest: Loading context main.bench_count_distinct [ pass ] 35 main.bigint [ pass ] 50 ReplayTest: Loading context ReplayTest: Loading context main.binary [ pass ] 45 main.binary_to_hex [ pass ] 124 main.blackhole_plugin [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 364 main.bug12427262 [ pass ] 10 main.bug13633383 [ pass ] 7 main.bulk_replace [ pass ] 3 main.cache_temporal_4265 [ pass ] 9 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 [ pass ] 163 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.cast [ pass ] 135 main.change_user [ pass ] 20 main.change_user_notembedded [ pass ] 5011 main.charset_client_win_utf8mb4 [ skipped ] Need windows main.check [ pass ] 1971 main.check_constraint [ pass ] 39 main.check_constraint_show [ pass ] 3 main.check_view_protocol [ skipped ] Test requires view-protocol main.cli_options_force_protocol_not_win [ pass ] 123 main.client [ pass ] 209 main.client_xml [ pass ] 141 main.column_compression_utf16 [ pass ] 5 main.comment_column [ pass ] 42 main.comment_column2 [ pass ] 34 main.comment_database [ pass ] 1428 main.comment_index [ pass ] 36 main.comment_table [ pass ] 12 main.comments [ pass ] 4 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.compare [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 5265 main.connect-no-db [ pass ] 3 main.connect_debug [ pass ] 27 main.constraints [ pass ] 26 main.contributors [ pass ] 2 main.count_distinct [ pass ] 20 ReplayTest: Loading context main.create [ pass ] 5202 main.create-uca [ pass ] 7 main.create_drop_db [ pass ] 6 main.create_drop_event [ pass ] 1434 main.create_drop_index [ pass ] 6 main.create_drop_procedure [ pass ] 7 main.create_drop_role [ pass ] 13 main.create_drop_server [ pass ] 7 main.create_drop_trigger [ pass ] 13 main.create_drop_udf [ pass ] 5 main.create_drop_user [ pass ] 22 main.create_drop_view [ pass ] 10 main.create_not_windows [ pass ] 9 main.create_or_replace_permission [ pass ] 9 main.create_replace_tmp [ pass ] 3 main.create_user [ pass ] 22 main.create_utf8 [ pass ] 9 main.create_w_max_indexes_128 [ skipped ] Test needs mysqld built with --with-max-indexes=128 main.create_w_max_indexes_64 [ pass ] 19 main.create_windows [ skipped ] Need windows main.cte_cycle [ pass ] 9 main.cte_grant [ pass ] 14 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 357 main.cte_nonrecursive_not_embedded [ pass ] 8 main.cte_recursive_not_embedded [ 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: Query error: FUNCTION test.f1 does not exist ReplayTest: In file "/home/srikanth/server/mysql-test/main/cte_update_delete.test" ReplayTest: At line 260 ReplayTest: Loading context 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-05-25 09:22:58 CURRENT_TEST: main.cte_update_delete --- /home/srikanth/server/mysql-test/main/cte_update_delete.result 2026-05-06 15:05:32.373048385 +0530 +++ /home/srikanth/server/mysql-test/main/cte_update_delete.reject 2026-05-25 09:22:58.762767309 +0530 @@ -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 system NULL NULL NULL NULL 1 -1 PRIMARY 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: Query error: FUNCTION test.f1 does not 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 '/home/srikanth/server/bld/mysql-test/var/log/main.cte_update_delete/' main.ctype_ascii [ pass ] 8 main.ctype_big5 [ pass ] 2483 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 452 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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_collate [ pass ] 138 main.ctype_collate_column [ pass ] 3665 main.ctype_collate_context [ pass ] 3798 main.ctype_collate_database [ pass ] 17 main.ctype_collate_implicit [ pass ] 25 main.ctype_collate_implicit_utf32 [ pass ] 5 main.ctype_collate_table [ pass ] 10 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.ctype_cp1250_ch [ pass ] 99 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.ctype_cp1251 [ pass ] 371 main.ctype_cp850 [ pass ] 57 main.ctype_cp866 [ pass ] 1 main.ctype_cp932 [ pass ] 49 main.ctype_create [ pass ] 18 main.ctype_dec8 [ pass ] 8 main.ctype_errors [ pass ] 11 main.ctype_eucjpms [ pass ] 1661 main.ctype_euckr [ pass ] 954 main.ctype_filename [ pass ] 27 main.ctype_gb2312 [ pass ] 2372 main.ctype_gbk [ pass ] 2360 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: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.ctype_latin1 [ fail ] Test ended at 2026-05-25 09:23:24 CURRENT_TEST: main.ctype_latin1 --- /home/srikanth/server/mysql-test/main/ctype_latin1.result 2026-05-06 15:05:32.374048398 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_latin1.reject 2026-05-25 09:23:23.836840349 +0530 @@ -3651,7 +3651,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` SET NAMES latin1; EXPLAIN EXTENDED SELECT 'abcdó', _latin1'abcdó', _utf8'abcdó'; id select_type table type possible_keys key key_len ref rows filtered Extra Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_latin1/' main.ctype_latin1_de [ pass ] 43 main.ctype_latin2 [ pass ] 33 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.ctype_latin2_ch [ pass ] 98 main.ctype_like_range [ pass ] 367 main.ctype_many [ pass ] 76 main.ctype_mb [ pass ] 11 main.ctype_nopad_8bit [ pass ] 923 main.ctype_recoding [ pass ] 37 main.ctype_sjis [ pass ] 3062 main.ctype_swe7 [ pass ] 1792 ReplayTest: Loading context ReplayTest: Loading context 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 ] 202 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_uca.test at line 674: ReplayTest: At line 130 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_uca.test at line 674: ReplayTest: At line 136 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_uca.test at line 674: ReplayTest: At line 143 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_uca.test at line 674: ReplayTest: At line 149 ReplayTest: Loading context main.ctype_uca [ fail ] Test ended at 2026-05-25 09:23:33 CURRENT_TEST: main.ctype_uca --- /home/srikanth/server/mysql-test/main/ctype_uca.result 2026-04-22 18:12:11.868574083 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_uca.reject 2026-05-25 09:23:33.743874058 +0530 @@ -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; @@ -14934,8 +14954,7 @@ # Ascending sort, using filesort # EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index; Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' SELECT a FROM t1 ORDER BY a, BINARY a; a -a @@ -15038,8 +15057,7 @@ # Descending sort, using filesort # EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index; Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC; a ฯพณฯ @@ -15142,8 +15160,7 @@ # Ascending sort, using index # EXPLAIN SELECT a FROM t1 ORDER BY a, id; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' SELECT a FROM t1 ORDER BY a, id; a -a @@ -15246,8 +15263,7 @@ # Descending sort, using index # EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 67 NULL 96 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' SELECT a FROM t1 ORDER BY a DESC, id DESC; a ฯพณฯ Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_uca/' ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 120: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 120: ReplayTest: At line 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: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_numconv.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 797: ReplayTest: At line 1748 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_numconv.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 797: ReplayTest: At line 1750 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 969: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 969: ReplayTest: At line 20 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 969: ReplayTest: At line 29 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 969: ReplayTest: At line 38 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 969: ReplayTest: At line 50 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 971: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 971: ReplayTest: At line 20 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 971: ReplayTest: At line 29 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 971: ReplayTest: At line 38 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like_cond_propagation.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 971: ReplayTest: At line 50 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_ucs.test" ReplayTest: At line 1029 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 1057: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 1057: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 1063: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_ucs.test at line 1063: ReplayTest: At line 11 main.ctype_ucs [ fail ] Test ended at 2026-05-25 09:23:35 CURRENT_TEST: main.ctype_ucs --- /home/srikanth/server/mysql-test/main/ctype_ucs.result 2026-05-06 15:05:32.375048411 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_ucs.reject 2026-05-25 09:23:34.998878517 +0530 @@ -250,11 +250,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' select * from t1 where a like "abc%"; a abc @@ -1564,10 +1562,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: un-escaping error of ranges element at offset 424. 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: un-escaping error of ranges element at offset 428. SELECT * FROM t1 WHERE a LIKE 'c%'; a ca @@ -1576,20 +1578,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: un-escaping error of ranges element at offset 420. 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: un-escaping error of ranges element at offset 428. 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: un-escaping error of ranges element at offset 422. SELECT hex(a) FROM t1 WHERE a LIKE concat('D',_ucs2 0x017E,'%'); hex(a) 0064017E @@ -4368,12 +4376,10 @@ INSERT INTO t1 VALUES (1,'2010-09-01'),(2,'2010-10-01'); INSERT INTO t1 VALUES (3,'2012-09-01'),(4,'2012-10-01'),(5,'2012-10-01'); EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 range date_column date_column 4 NULL 2 Using index condition +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' ALTER TABLE t1 MODIFY date_column DATETIME DEFAULT NULL; EXPLAIN SELECT * FROM t1 WHERE date_column BETWEEN '2010-09-01' AND '2010-10-01'; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 range date_column date_column 6 NULL 2 Using index condition +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; # # Bug #31384 DATE_ADD() and DATE_SUB() return binary data @@ -5452,10 +5458,7 @@ c1 a EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE '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`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a ' +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0; SHOW CREATE TABLE t1; @@ -5475,10 +5478,7 @@ c1 a EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1); -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`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`) +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0; SHOW CREATE TABLE t1; @@ -5498,10 +5498,7 @@ c1 % EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1); -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`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`) +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0; SHOW CREATE TABLE t1; @@ -5521,10 +5518,7 @@ c1 % EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1); -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`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`) +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; # # MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a' @@ -5543,10 +5537,7 @@ a LENGTH(a) a 2 EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' 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`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a ' +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; # # End of MDEV-8694 @@ -5573,10 +5564,7 @@ c1 a EXPLAIN EXTENDED SELECT * FROM t1 WHERE CONCAT(c1)='a' AND CONCAT(c1) LIKE '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`.`c1` AS `c1` from `test`.`t1` where concat(`test`.`t1`.`c1`) = 'a' and concat(`test`.`t1`.`c1`) like 'a ' +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0; SHOW CREATE TABLE t1; @@ -5596,10 +5584,7 @@ c1 a EXPLAIN EXTENDED SELECT * FROM t1 WHERE 'a'=CONCAT(c1) AND 'a ' LIKE CONCAT(c1); -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`.`c1` AS `c1` from `test`.`t1` where 'a' = concat(`test`.`t1`.`c1`) and 'a ' like concat(`test`.`t1`.`c1`) +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0; SHOW CREATE TABLE t1; @@ -5619,10 +5604,7 @@ c1 % EXPLAIN EXTENDED SELECT * FROM t1 WHERE '% '=CONCAT(c1) AND 'a' LIKE CONCAT(c1); -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`.`c1` AS `c1` from `test`.`t1` where '% ' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`) +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; CREATE TABLE t1 AS SELECT REPEAT('a', 10) AS c1 LIMIT 0; SHOW CREATE TABLE t1; @@ -5642,10 +5624,7 @@ c1 % EXPLAIN EXTENDED SELECT * FROM t1 WHERE '%'=CONCAT(c1) AND 'a' LIKE CONCAT(c1); -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`.`c1` AS `c1` from `test`.`t1` where '%' = concat(`test`.`t1`.`c1`) and 'a' like concat(`test`.`t1`.`c1`) +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; # # MDEV-8694 Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a' @@ -5664,10 +5643,7 @@ a LENGTH(a) a 2 EXPLAIN EXTENDED SELECT a, LENGTH(a) FROM t1 WHERE a NOT LIKE 'a ' 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`,octet_length(`test`.`t1`.`a`) AS `LENGTH(a)` from `test`.`t1` where `test`.`t1`.`a` = 'a' and `test`.`t1`.`a` not like 'a ' +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; # # End of MDEV-8694 @@ -5752,10 +5728,7 @@ INSERT INTO t1 VALUES (1.5,1.5,'1','1'),(3.5,3.5,'3','3'); EXPLAIN EXTENDED SELECT * FROM t1 WHERE COALESCE(c,0)='3 ' AND COALESCE(d,0)=COALESCE(c,0); -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`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where coalesce(`test`.`t1`.`c`,0) = '3 ' and coalesce(`test`.`t1`.`d`,0) = '3 ' +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' DROP TABLE t1; # # MDEV-9178 Wrong result for CAST(CONVERT('1IJ3' USING ucs2) AS SIGNED) @@ -6066,11 +6039,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' select * from t1 where a like "abc%"; a abc @@ -6464,11 +6435,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'ucs2' select * from t1 where a like "abc%"; a abc Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_ucs/' main.ctype_ucs2_uca [ pass ] 223 main.ctype_ujis [ pass ] 1893 main.ctype_ujis_ucs2 [ pass ] 808 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16.test at line 88: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16.test at line 88: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16.test at line 935: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16.test at line 935: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16.test at line 941: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16.test at line 941: ReplayTest: At line 11 main.ctype_utf16 [ fail ] Test ended at 2026-05-25 09:23:39 CURRENT_TEST: main.ctype_utf16 --- /home/srikanth/server/mysql-test/main/ctype_utf16.result 2026-04-22 18:12:11.870575083 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf16.reject 2026-05-25 09:23:39.262893996 +0530 @@ -131,11 +131,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' select * from t1 where a like "abc%"; a abc @@ -2552,11 +2550,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' select * from t1 where a like "abc%"; a abc @@ -2950,11 +2946,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' select * from t1 where a like "abc%"; a abc Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf16/' ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_unicode520.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16_uca.test at line 191: ReplayTest: At line 161 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16_uca.test at line 221: ReplayTest: At line 130 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16_uca.test at line 221: ReplayTest: At line 136 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16_uca.test at line 221: ReplayTest: At line 143 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16_uca.test at line 221: ReplayTest: At line 149 main.ctype_utf16_uca [ fail ] Test ended at 2026-05-25 09:23:40 CURRENT_TEST: main.ctype_utf16_uca --- /home/srikanth/server/mysql-test/main/ctype_utf16_uca.result 2026-04-22 18:12:11.871575584 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf16_uca.reject 2026-05-25 09:23:40.160897317 +0530 @@ -4007,8 +4007,7 @@ D801DC28 30D2 𐐨 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c; hex(c) hex(weight_string(c)) 0061 120F @@ -6895,8 +6894,7 @@ # Ascending sort, using filesort # EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' SELECT a FROM t1 ORDER BY a, BINARY a; a -a @@ -6999,8 +6997,7 @@ # Descending sort, using filesort # EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC; a ฯพณฯ @@ -7103,8 +7100,7 @@ # Ascending sort, using index # EXPLAIN SELECT a FROM t1 ORDER BY a, id; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' SELECT a FROM t1 ORDER BY a, id; a -a @@ -7207,8 +7203,7 @@ # Descending sort, using index # EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16' SELECT a FROM t1 ORDER BY a DESC, id DESC; a ฯพณฯ Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf16_uca/' ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16le.test at line 91: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16le.test at line 91: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf16le.test" ReplayTest: At line 167 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf16le.test" ReplayTest: At line 169 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf16le.test" ReplayTest: At line 191 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf16le.test" ReplayTest: At line 213 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf16le.test" ReplayTest: At line 215 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf16le.test" ReplayTest: At line 374 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16le.test at line 817: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16le.test at line 817: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16le.test at line 823: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf16le.test at line 823: ReplayTest: At line 11 main.ctype_utf16le [ fail ] Test ended at 2026-05-25 09:23:41 CURRENT_TEST: main.ctype_utf16le --- /home/srikanth/server/mysql-test/main/ctype_utf16le.result 2026-04-22 18:12:11.871575584 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf16le.reject 2026-05-25 09:23:40.910900107 +0530 @@ -135,11 +135,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' select * from t1 where a like "abc%"; a abc @@ -367,8 +365,7 @@ INSERT INTO t1 (word) VALUES ("aardvara"); INSERT INTO t1 (word) VALUES ("aardvarz"); EXPLAIN SELECT * FROM t1 ORDER BY word; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' SELECT * FROM t1 ORDER BY word; word bar a 0 @@ -378,8 +375,7 @@ aardvark 0 aardvarz 0 EXPLAIN SELECT word FROM t1 ORDER BY word; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' SELECT word FROM t1 ORDER by word; word a @@ -405,8 +401,7 @@ INSERT INTO t1 (word) VALUES ("aardvara"); INSERT INTO t1 (word) VALUES ("aardvarz"); EXPLAIN SELECT * FROM t1 ORDER BY WORD; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL PRIMARY 258 NULL 6 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' SELECT * FROM t1 ORDER BY word; word a @@ -433,8 +428,7 @@ INSERT INTO t1 (word) VALUES ("aardvara"); INSERT INTO t1 (word) VALUES ("aardvarz"); EXPLAIN SELECT * FROM t1 ORDER BY word; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' SELECT * FROM t1 ORDER BY word; word bar a 2 @@ -444,8 +438,7 @@ aardvark 4 aardvarz 6 EXPLAIN SELECT word FROM t1 ORDER BY word; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 ALL NULL NULL NULL NULL 6 Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' SELECT word FROM t1 ORDER BY word; word a @@ -927,8 +920,7 @@ INSERT INTO t1 VALUES (REPEAT(_ucs2 0x2021, 10)); # make sure "index read" is used explain SELECT HEX(a) FROM t1 ORDER BY a; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a 40 NULL 3 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' SELECT HEX(a) FROM t1 ORDER BY a; HEX(a) 1F201F201F201F201F201F201F201F201F201F20 @@ -2738,11 +2730,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' select * from t1 where a like "abc%"; a abc @@ -3136,11 +3126,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf16le' select * from t1 where a like "abc%"; a abc Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf16le/' ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32.test at line 93: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32.test at line 93: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In file "/home/srikanth/server/mysql-test/main/ctype_utf32.test" ReplayTest: At line 426 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32.test at line 1039: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32.test at line 1039: ReplayTest: At line 11 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32.test at line 1045: ReplayTest: At line 10 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_like.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32.test at line 1045: ReplayTest: At line 11 main.ctype_utf32 [ fail ] Test ended at 2026-05-25 09:23:41 CURRENT_TEST: main.ctype_utf32 --- /home/srikanth/server/mysql-test/main/ctype_utf32.result 2026-04-22 18:12:11.872576084 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf32.reject 2026-05-25 09:23:41.681902994 +0530 @@ -131,11 +131,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' select * from t1 where a like "abc%"; a abc @@ -873,8 +871,7 @@ insert into t1 values (repeat(0x00002020, 10)); insert into t1 values (repeat(0x00002021, 10)); explain select hex(a) from t1 order by a; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a 40 NULL 3 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' select hex(a) from t1 order by a; hex(a) 0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F0000201F @@ -2608,11 +2605,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' select * from t1 where a like "abc%"; a abc @@ -3006,11 +3001,9 @@ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' select * from t1 where a like "abc%"; a abc Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf32/' main.ctype_utf32_not_embedded [ pass ] 87 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_unicode520.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32_uca.test at line 212: ReplayTest: At line 161 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32_uca.test at line 242: ReplayTest: At line 130 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32_uca.test at line 242: ReplayTest: At line 136 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32_uca.test at line 242: ReplayTest: At line 143 ReplayTest: Loading context ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' ReplayTest: In included file "./include/ctype_thai.inc": ReplayTest: included from /home/srikanth/server/mysql-test/main/ctype_utf32_uca.test at line 242: ReplayTest: At line 149 main.ctype_utf32_uca [ fail ] Test ended at 2026-05-25 09:23:43 CURRENT_TEST: main.ctype_utf32_uca --- /home/srikanth/server/mysql-test/main/ctype_utf32_uca.result 2026-04-22 18:12:11.872576084 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf32_uca.reject 2026-05-25 09:23:42.878907503 +0530 @@ -4027,8 +4027,7 @@ 00010428 30D2 𐐨 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 +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' SELECT hex(c), hex(weight_string(c)) FROM t1 WHERE c LIKE 'a%' ORDER BY c; hex(c) hex(weight_string(c)) 00000061 120F @@ -6915,8 +6914,7 @@ # Ascending sort, using filesort # EXPLAIN SELECT a FROM t1 ORDER BY a, BINARY a; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' SELECT a FROM t1 ORDER BY a, BINARY a; a -a @@ -7019,8 +7017,7 @@ # Descending sort, using filesort # EXPLAIN SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index; Using filesort +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' SELECT a FROM t1 ORDER BY a DESC, BINARY a DESC; a ฯพณฯ @@ -7123,8 +7120,7 @@ # Ascending sort, using index # EXPLAIN SELECT a FROM t1 ORDER BY a, id; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' SELECT a FROM t1 ORDER BY a, id; a -a @@ -7227,8 +7223,7 @@ # Descending sort, using index # EXPLAIN SELECT a FROM t1 ORDER BY a DESC, id DESC; -id select_type table type possible_keys key key_len ref rows Extra -1 SIMPLE t1 index NULL a_id 127 NULL 96 Using index +ReplayTest: Query error: Variable 'character_set_client' can't be set to the value of 'utf32' SELECT a FROM t1 ORDER BY a DESC, id DESC; a ฯพณฯ Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.ctype_utf32_uca/' main.ctype_utf8_uca [ pass ] 352 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 ] 81 main.ctype_utf8mb3_geeral1400_as_ci [ pass ] 6 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 ] 86 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 ] 105 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 ] 80 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 ] 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 main.ctype_utf8mb4_heap [ fail ] Test ended at 2026-05-25 09:23:45 CURRENT_TEST: main.ctype_utf8mb4_heap --- /home/srikanth/server/mysql-test/main/ctype_utf8mb4_heap.result 2026-05-06 15:05:32.377048436 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf8mb4_heap.reject 2026-05-25 09:23:45.763918531 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:23:46 CURRENT_TEST: main.ctype_utf8mb4_myisam --- /home/srikanth/server/mysql-test/main/ctype_utf8mb4_myisam.result 2026-05-06 15:05:32.377048436 +0530 +++ /home/srikanth/server/mysql-test/main/ctype_utf8mb4_myisam.reject 2026-05-25 09:23:46.574921671 +0530 @@ -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 '/home/srikanth/server/bld/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 ] 602 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 ] 82 main.ctype_utf8mb4_uca_allkeys1400 [ pass ] 12000 main.ctype_utf8mb4_uca_allkeys400 [ pass ] 3726 main.ctype_utf8mb4_uca_allkeys520 [ pass ] 4930 main.custom_aggregate_functions [ pass ] 98 main.custom_aggregates_i_s [ pass ] 12 ReplayTest: Loading context main.date_formats [ pass ] 26 main.datetime_456 [ pass ] 2 main.ddl_i18n_koi8r [ pass ] 638 main.ddl_i18n_utf8 [ pass ] 602 main.deadlock_ftwrl [ pass ] 10 ReplayTest: Loading context main.debug_replay_test [ fail ] Test ended at 2026-05-25 09:24:12 CURRENT_TEST: main.debug_replay_test --- /home/srikanth/server/mysql-test/main/debug_replay_test.result 2026-05-23 05:10:02.883194938 +0530 +++ /home/srikanth/server/mysql-test/main/debug_replay_test.reject 2026-05-25 09:24:11.868028201 +0530 @@ -9,7 +9,7 @@ set @trace=(select trace from information_schema.optimizer_trace); select json_valid(@trace); json_valid(@trace) -0 +1 select @trace; @trace { @@ -19,7 +19,7 @@ "select_id": 1, "steps": [ { - "expanded_query": "select t2.a AS a from t2 where t2.a < '"'" + "expanded_query": "select information_schema.optimizer_context.`CONTEXT` AS `context` from optimizer_context" } ] } @@ -29,42 +29,21 @@ "select_id": 1, "steps": [ { - "condition_processing": { - "condition": "WHERE", - "original_condition": "t2.a < '"'", - "steps": [ - { - "transformation": "equality_propagation", - "resulting_condition": "t2.a < '"'" - }, - { - "transformation": "constant_propagation", - "resulting_condition": "t2.a < '"'" - }, - { - "transformation": "trivial_condition_removal", - "resulting_condition": "t2.a < '"'" - } - ] - } - }, - { - "ref_optimizer_key_uses": [] - }, - { "rows_estimation": [ { - "table": "t2", - "rows": 0, - "cost": 1, - "table_type": "system" + "table": "optimizer_context", + "table_scan": { + "rows": 100, + "read_cost": 0.0211234, + "read_and_compare_cost": 0.0243234 + } } ] }, { "table_dependencies": [ { - "table": "t2", + "table": "optimizer_context", "row_may_be_null": false, "map_bit": 0, "depends_on_map_bits": [] @@ -72,9 +51,64 @@ ] }, { - "best_join_order": ["t2"], - "rows": 1, - "cost": 0 + "considered_execution_plans": [ + { + "plan_prefix": "", + "get_costs_for_tables": [ + { + "best_access_path": { + "table": "optimizer_context", + "plan_details": { + "record_count": 1 + }, + "considered_access_paths": [ + { + "access_type": "scan", + "rows": 100, + "rows_after_filter": 100, + "rows_out": 100, + "cost": 0.0243234, + "index_only": false, + "chosen": true + } + ], + "chosen_access_method": { + "type": "scan", + "rows_read": 100, + "rows_out": 100, + "cost": 0.0243234, + "uses_join_buffering": false + } + } + } + ] + }, + { + "plan_prefix": "", + "table": "optimizer_context", + "rows_for_plan": 100, + "cost_for_plan": 0.0243234 + } + ] + }, + { + "best_join_order": ["optimizer_context"], + "rows": 100, + "cost": 0.0243234 + }, + { + "attaching_conditions_to_tables": { + "attached_conditions_computation": [], + "attached_conditions_summary": [ + { + "table": "optimizer_context", + "attached_condition": null + } + ] + } + }, + { + "make_join_readinfo": [] } ] } @@ -83,5 +117,5 @@ } select json_valid(@trace); json_valid(@trace) -0 +1 drop table t2; Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.debug_replay_test/' main.default_debug [ pass ] 12 main.default_session [ pass ] 23 main.default_storage_engine [ pass ] 1378 main.delayed [ pass ] 2310 main.delete_returning_grant [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:24:21 CURRENT_TEST: main.delete_single_to_multi --- /home/srikanth/server/mysql-test/main/delete_single_to_multi.result 2026-04-22 18:12:11.879579587 +0530 +++ /home/srikanth/server/mysql-test/main/delete_single_to_multi.reject 2026-05-25 09:24:21.290072055 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.delete_single_to_multi/' main.delimiter_command_case_sensitivity [ pass ] 25 main.deprecated_features [ pass ] 3 main.dirty_close [ pass ] 1029 main.drop_combinations [ pass ] 181 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 110 main.empty_server_name-8224 [ pass ] 1313 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.empty_string_literal [ fail ] Test ended at 2026-05-25 09:24:25 CURRENT_TEST: main.empty_string_literal --- /home/srikanth/server/mysql-test/main/empty_string_literal.result 2026-04-22 18:12:11.884582089 +0530 +++ /home/srikanth/server/mysql-test/main/empty_string_literal.reject 2026-05-25 09:24:25.463092182 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.empty_string_literal/' ReplayTest: Loading context ReplayTest: Loading context main.empty_table [ pass ] 39 main.empty_user_table [ pass ] 23 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 ] 88 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 ] 114 main.execution_constants [ pass ] 240 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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 "/home/srikanth/server/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-05-25 09:24:28 CURRENT_TEST: main.explain --- /home/srikanth/server/mysql-test/main/explain.result 2026-04-22 18:12:11.885582589 +0530 +++ /home/srikanth/server/mysql-test/main/explain.reject 2026-05-25 09:24:28.188105555 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.explain/' main.failed_auth_3909 [ pass ] 3016 main.features 'nm' [ pass ] 27 main.filesort_bad_i_s-7585 [ pass ] 84 main.filesort_debug [ pass ] 13 main.filesort_pack [ pass ] 6 main.fix_priv_tables [ pass ] 533 main.flush [ pass ] 4121 main.flush_logs_not_windows [ pass ] 6 main.flush_notembedded [ pass ] 16 main.flush_ssl [ pass ] 2697 main.flush_table [ pass ] 4029 main.frm-debug [ pass ] 15 main.frm_bad_row_type-7333 [ 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 main.fulltext [ pass ] 151 main.fulltext2 [ pass ] 262 main.fulltext3 [ pass ] 8 main.fulltext_cache [ pass ] 5 main.fulltext_charsets [ pass ] 3 main.fulltext_derived_4257 [ pass ] 2 main.fulltext_derived_4316 [ pass ] 3 main.fulltext_distinct [ pass ] 6 main.fulltext_left_join [ pass ] 14 main.fulltext_multi [ pass ] 5 ReplayTest: Loading context main.fulltext_order_by [ pass ] 23 main.fulltext_update [ pass ] 6 main.fulltext_var [ pass ] 7 main.func_bit [ pass ] 20 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.func_compress [ pass ] 382 ReplayTest: Loading context main.func_concat [ pass ] 36 ReplayTest: Loading context main.func_crypt [ pass ] 24 main.func_date_add [ pass ] 14 ReplayTest: Loading context main.func_debug [ pass ] 82 ReplayTest: Loading context ReplayTest: Loading context main.func_default [ pass ] 31 main.func_des_encrypt [ pass ] 5 main.func_digest [ pass ] 32 main.func_encrypt_nossl [ skipped ] Test requires: embedded server main.func_encrypt_ucs2 [ pass ] 2 main.func_equal [ pass ] 4 main.func_extract [ pass ] 107 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-05-25 09:24:51 CURRENT_TEST: main.func_group --- /home/srikanth/server/mysql-test/main/func_group.result 2026-05-06 15:05:32.382048500 +0530 +++ /home/srikanth/server/mysql-test/main/func_group.reject 2026-05-25 09:24:51.322226307 +0530 @@ -1985,7 +1985,7 @@ 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 +1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING 2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 Warnings: Warning 1292 Truncated incorrect DOUBLE value: 'j' @@ -2013,7 +2013,7 @@ 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 +1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING 2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 # @@ -2037,7 +2037,7 @@ 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 +1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING 2 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 # @@ -2062,7 +2062,7 @@ SELECT v FROM t2); id select_type table type possible_keys key key_len ref rows Extra -1 PRIMARY system NULL NULL NULL NULL 0 Const row not found +1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING 3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 2 DERIVED NULL NULL NULL NULL NULL NULL NULL no matching row in const table set optimizer_switch=@tmp_optimizer_switch; @@ -2089,7 +2089,7 @@ 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 +1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible HAVING 3 MATERIALIZED t2 ALL NULL NULL NULL NULL 2 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 '/home/srikanth/server/bld/mysql-test/var/log/main.func_group/' main.func_hybrid_type [ pass ] 169 ReplayTest: Loading context ReplayTest: Loading context main.func_if [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1682 main.func_int [ pass ] 10 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.func_isnull [ pass ] 74 main.func_json_notembedded [ pass ] 72 main.func_kdf 'new' [ pass ] 38 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-05-25 09:24:55 CURRENT_TEST: main.func_like --- /home/srikanth/server/mysql-test/main/func_like.result 2026-04-22 18:12:11.891585592 +0530 +++ /home/srikanth/server/mysql-test/main/func_like.reject 2026-05-25 09:24:55.227247937 +0530 @@ -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 379. +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 (concat('abc','%')) +Warning 4253 Failed to parse saved optimizer context: error reading ranges value at offset 379. +Note 1003 select NULL AS `a` from `test`.`t1` where 0 select * from t1 where a like "abc%"; a abc Result length mismatch - skipping '/home/srikanth/server/bld/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 ] 472 main.func_numconv [ pass ] 67 main.func_numconv_debug [ pass ] 8 main.func_numconv_format [ pass ] 13980 main.func_numconv_ucs2 [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context main.func_op [ pass ] 13 ReplayTest: Loading context main.func_regexp [ pass ] 27 ReplayTest: Loading context ReplayTest: Loading context main.func_regexp_pcre [ pass ] 35 main.func_regexp_pcre_debug [ pass ] 2 main.func_replace [ pass ] 10 main.func_sapdb [ pass ] 10 ReplayTest: Loading context main.func_set [ pass ] 21 main.func_sformat [ pass ] 27 ReplayTest: Loading context main.func_system [ pass ] 14 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 54 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 ] 8212 main.func_time_32 [ skipped ] Need a 32 bit timestamps main.func_time_64 [ pass ] 13 ReplayTest: Loading context main.func_time_hires [ pass ] 19 main.func_time_round [ pass ] 30 main.func_timestamp [ pass ] 3 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.func_weight_string [ pass ] 36 main.function_defaults [ pass ] 212 main.function_defaults_notembedded [ pass ] 28 main.gcc296 [ 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: 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 /home/srikanth/server/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-05-25 09:25:23 CURRENT_TEST: main.gis --- /home/srikanth/server/mysql-test/main/gis.result 2026-05-06 15:05:32.387048564 +0530 +++ /home/srikanth/server/mysql-test/main/gis.reject 2026-05-25 09:25:23.331413873 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.gis/' main.gis-debug [ pass ] 52 main.gis-json [ pass ] 6 main.gis-loaddata [ pass ] 5 main.gis-precise [ pass ] 7059 ReplayTest: Loading context ReplayTest: Loading context main.gis-rt-precise [ 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 main.gis-rtree [ pass ] 241 main.gis_notembedded [ pass ] 12 main.grant5 [ pass ] 81 main.grant_4332 [ pass ] 49 main.grant_binlog_replay [ pass ] 5 main.grant_cache_no_prot [ pass ] 48 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-05-25 09:25:33 CURRENT_TEST: main.grant_explain_non_select --- /home/srikanth/server/mysql-test/main/grant_explain_non_select.result 2026-03-30 13:48:17.333011693 +0530 +++ /home/srikanth/server/mysql-test/main/grant_explain_non_select.reject 2026-05-25 09:25:33.520478362 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.grant_explain_non_select/' main.grant_kill [ pass ] 14 main.grant_lowercase_fs [ skipped ] Test requires: 'case_insensitive_fs' main.grant_master_admin [ pass ] 6 main.grant_plugin [ pass ] 7 main.grant_read_only [ pass ] 12 main.grant_repair [ pass ] 61 main.grant_server [ pass ] 11 main.grant_slave_admin [ pass ] 9 main.grant_slave_monitor [ pass ] 12 main.grant_utf8_cli [ pass ] 25 main.group_by_null [ pass ] 3 main.handler_read_last [ pass ] 9 ReplayTest: Loading context ReplayTest: Loading context 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 [ pass ] 230 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:25:38 CURRENT_TEST: main.having_cond_pushdown --- /home/srikanth/server/mysql-test/main/having_cond_pushdown.result 2026-05-06 15:05:32.389048590 +0530 +++ /home/srikanth/server/mysql-test/main/having_cond_pushdown.reject 2026-05-25 09:25:38.116508183 +0530 @@ -945,32 +945,7 @@ 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 +5921,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 +6015,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 +6050,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 '/home/srikanth/server/bld/mysql-test/var/log/main.having_cond_pushdown/' main.help [ pass ] 137 main.identifier [ pass ] 13 main.implicit_char_to_num_conversion [ pass ] 35 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 ] 781 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:25:41 CURRENT_TEST: main.index_intersect --- /home/srikanth/server/mysql-test/main/index_intersect.result 2026-05-06 15:05:32.390048603 +0530 +++ /home/srikanth/server/mysql-test/main/index_intersect.reject 2026-05-25 09:25:41.414529863 +0530 @@ -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 City range Population,Name Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City range Population,Name Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 City range Population,Country,Name Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(J\0\0) <= (Country) <= (Jÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 City range Population,Name,Country Country # NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 City range PRIMARY,Population,Country Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 City range PRIMARY,Population,Country Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(H\0\0) <= (Country) <= (Hÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 City range Population,Name Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Mÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name 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 Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(J\0\0) <= (Country) <= (Jÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 City range Population,Country,Name Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country 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 City range PRIMARY,Population,Country Country 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0) <= (Country) <= (Cÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Country EXPLAIN SELECT * FROM City WHERE ID BETWEEN 3001 AND 4000 AND Population > 600000 @@ -852,7 +882,10 @@ 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 CountryID 3 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0) <= (Country) <= (Mÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryID +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(M\0\0) <= (Country) <= (Mÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName EXPLAIN SELECT * FROM City WHERE Country='USA' AND Population > 1000000; @@ -862,7 +895,10 @@ 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 range Population,Name,CountryID,CountryName Name 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(USA,C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Country,Name) <= (USA,Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name CountryName SELECT * FROM City USE INDEX () WHERE Country LIKE 'M%' AND Population > 1000000; ID Name Country Population @@ -934,8 +970,10 @@ 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 City range Population,Name,CountryID,CountryName Name 35 NULL # Using index condition; Using where 1 SIMPLE Country eq_ref PRIMARY PRIMARY 3 world.City.Country # +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (Name) <= (Cÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), ] doesn't exist in the list of ranges for table_name world.City and index_name Name DROP DATABASE world; use test; CREATE TABLE t1 ( @@ -963,7 +1001,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 t1 range PRIMARY,f4 f4 35 NULL # Using index condition; Using where +Warnings: +Warning 4254 Failed to match the stats from replay context with the optimizer stats: the given list of ranges i.e. [(a\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0) <= (f4) <= (aÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ), (r) <= (f4) <= (r), ] doesn't exist in the list of ranges for table_name test.t1 and index_name f4 SELECT * FROM t1 WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ; f1 f4 f5 Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.index_intersect/' main.information_schema2 [ pass ] 17 main.information_schema_chmod [ pass ] 3 main.information_schema_columns [ pass ] 8 main.information_schema_linux [ pass ] 3 main.information_schema_parameters [ pass ] 38 main.information_schema_prepare [ pass ] 4 main.information_schema_routines [ pass ] 47 main.information_schema_stats [ pass ] 15 main.init_file_set_password-7656 [ pass ] 1313 main.insert [ pass ] 1004 main.insert_notembedded [ pass ] 33 main.insert_returning_datatypes [ pass ] 6 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.insert_select [ pass ] 320 ReplayTest: Loading context ReplayTest: Loading context main.insert_update [ pass ] 2073 main.insert_update_autoinc-7150 [ 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 main.intersect [ pass ] 3014 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: 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 "/home/srikanth/server/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 "/home/srikanth/server/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 "/home/srikanth/server/mysql-test/main/intersect_all.test" ReplayTest: At line 473 main.intersect_all [ fail ] Test ended at 2026-05-25 09:25:58 CURRENT_TEST: main.intersect_all --- /home/srikanth/server/mysql-test/main/intersect_all.result 2026-04-22 18:12:11.909594599 +0530 +++ /home/srikanth/server/mysql-test/main/intersect_all.reject 2026-05-25 09:25:58.496645795 +0530 @@ -1093,14 +1093,9 @@ NULL UNION RESULT 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 ALL NULL NULL NULL NULL 2 -4 DERIVED 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 ALL NULL NULL NULL NULL NULL -5 INTERSECT NULL NULL NULL NULL NULL NULL NULL no matching row in const table -NULL INTERSECT RESULT 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 ALL NULL NULL NULL NULL 8 -4 DERIVED 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 ALL NULL NULL NULL NULL NULL -5 UNION NULL NULL NULL NULL NULL NULL NULL No tables used -NULL UNION RESULT 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 ALL NULL NULL NULL NULL 2 -4 DERIVED 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 ALL NULL NULL NULL NULL NULL -5 INTERSECT NULL NULL NULL NULL NULL NULL NULL No tables used -NULL INTERSECT RESULT 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 '/home/srikanth/server/bld/mysql-test/var/log/main.intersect_all/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.invisible_field [ pass ] 81 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-05-25 09:25:59 CURRENT_TEST: main.invisible_field_debug --- /home/srikanth/server/mysql-test/main/invisible_field_debug.result 2026-04-22 18:12:11.909594599 +0530 +++ /home/srikanth/server/mysql-test/main/invisible_field_debug.reject 2026-05-25 09:25:59.162650436 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.invisible_field_debug/' main.invisible_field_grant_completely [ pass ] 16 main.invisible_field_grant_system [ pass ] 9 main.item_types [ pass ] 10 main.join_crash [ pass ] 14 main.json_debug_nonembedded [ pass ] 3 main.json_equals [ pass ] 15 main.json_normalize [ pass ] 9 ReplayTest: Loading context main.key_diff [ pass ] 18 main.key_primary [ pass ] 5 main.keywords [ pass ] 129 main.kill_processlist-6619 [ pass ] 6 main.kill_query-6728 [ pass ] 2 main.last_value [ pass ] 6 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.limit [ pass ] 40 main.loaddata [ pass ] 125 main.loadxml [ pass ] 3236 main.lock_multi [ pass ] 7148 main.lock_multi_bug38499 [ pass ] 1180 main.lock_multi_bug38691 [ pass ] 603 main.lock_user [ pass ] 1026 main.lock_view [ pass ] 77 main.log_crash [ pass ] 1425 main.log_errchk [ pass ] 1333 main.log_slow [ pass ] 1469 main.log_slow_always_query_time [ pass ] 3009 main.log_tables_debug [ pass ] 8 main.long_host [ pass ] 47 main.long_unique_bugs_no_sp_protocol [ pass ] 9 main.long_unique_debug [ pass ] 12 main.long_unique_delayed [ pass ] 7 main.long_unique_update [ pass ] 36 main.long_unique_using_hash [ pass ] 6 main.lotofstack [ pass ] 194 main.lowercase_fs_off [ pass ] 714 main.lowercase_fs_on [ skipped ] Test requires: 'case_insensitive_file_system' main.lowercase_table5 [ pass ] 31 main.max_password_errors [ pass ] 3024 main.mdev-34724 [ pass ] 54 main.mdev19198 [ pass ] 2 main.mdev316 [ pass ] 2 main.mdev375 [ pass ] 14 main.mdev6830 [ pass ] 10 main.mdev_14586 [ pass ] 9 main.mdev_19276 [ pass ] 16 main.mdev_22370 [ pass ] 2419 main.memory_used [ pass ] 3 main.metadata [ 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 main.mix2_myisam [ fail ] Test ended at 2026-05-25 09:26:36 CURRENT_TEST: main.mix2_myisam --- /home/srikanth/server/mysql-test/main/mix2_myisam.result 2026-04-22 18:12:11.920600103 +0530 +++ /home/srikanth/server/mysql-test/main/mix2_myisam.reject 2026-05-25 09:26:36.338923619 +0530 @@ -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 558. 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 1431. 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 621. 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 '/home/srikanth/server/bld/mysql-test/var/log/main.mix2_myisam/' main.mix2_myisam_ucs2 [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:26:39 CURRENT_TEST: main.mrr_icp_extra --- /home/srikanth/server/mysql-test/main/mrr_icp_extra.result 2026-04-22 18:12:11.920600103 +0530 +++ /home/srikanth/server/mysql-test/main/mrr_icp_extra.reject 2026-05-25 09:26:38.862943139 +0530 @@ -212,7 +212,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 1120. SELECT * FROM t1 WHERE (f1 < 535 OR f1 > 985) AND ( f4='r' OR f4 LIKE 'a%' ) ; f1 f4 f5 @@ -351,7 +353,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 558. 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 +551,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 1431. 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 +633,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 621. 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 '/home/srikanth/server/bld/mysql-test/var/log/main.mrr_icp_extra/' main.multi_update_debug [ pass ] 10 main.my_print_defaults [ pass ] 27 main.myisam-system [ pass ] 6 main.myisam_debug [ pass ] 121 main.myisam_debug_keys [ pass ] 328 main.myisam_enable_keys-10506 [ pass ] 7 ReplayTest: Loading context main.myisam_icp_debug [ pass ] 23 main.myisam_icp_notembedded [ pass ] 99 ReplayTest: Loading context main.myisam_optimize [ pass ] 100 main.myisampack [ pass ] 515 main.mysql [ pass ] 102748 main.mysql-bug41486 [ pass ] 114 main.mysql-bug45236 [ pass ] 79 main.mysql-interactive [ skipped ] no socat main.mysql-metadata [ pass ] 31 main.mysql5613mysql [ pass ] 13 main.mysql57_virtual [ pass ] 5 main.mysql_comments [ pass ] 56 main.mysql_connector_net [ skipped ] Need windows main.mysql_cp932 [ pass ] 84 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 ] 89 main.mysql_protocols [ pass ] 57 main.mysql_upgrade_file_leak [ pass ] 30 main.mysql_upgrade_mysql_json [ pass ] 2197 main.mysql_upgrade_mysql_json_system_tables [ pass ] 533 main.mysql_upgrade_no_innodb [ pass ] 464 main.mysqladmin [ pass ] 4002 main.mysqld--defaults-file [ pass ] 210 main.mysqld--help 'unix' [ pass ] 84 main.mysqld--help-aria [ pass ] 228 main.mysqld_help_crash-9183 [ pass ] 80 worker[01] Trying to dump core for [mysqltest - pid: 507394, winpid: 507394] worker[01] Trying to dump core for [mysqld.1 - pid: 507304, winpid: 507304] main.mysqld_option_err [ fail ] timeout after 900 seconds Test ended at 2026-05-25 09:44:59 Test case timeout after 900 seconds == /home/srikanth/server/bld/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. == /home/srikanth/server/bld/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 '/home/srikanth/server/bld/mysql-test/var/tmp/mysqld.1.sock' (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 '/home/srikanth/server/bld/mysql-test/var/log/main.mysqld_option_err/' ***Warnings generated in error logs during shutdown after running tests: main.mysqld_help_crash-9183 main.mysqld--help main.mysqld_option_err main.mysqld--defaults-file main.mysqladmin main.mysqld--help-aria 260525 9:43:57 [ERROR] /home/srikanth/server/bld/sql/mariadbd got signal 6 ; Attempting backtrace. Include this in the bug report. main.mysqldump-header [ pass ] 314 main.mysqldump-nl [ pass ] 89 main.mysqldump-timing [ pass ] 1124 main.mysqldump-utf8mb4 [ pass ] 74 main.mysqlhotcopy_myisam [ skipped ] Test needs Perl modules DBI and DBD::MariaDB main.mysqlshow [ pass ] 68 main.mysqltest-break [ pass ] 8 main.mysqltest_256 [ pass ] 1 main.mysqltest_cont_on_error [ pass ] 12 main.mysqltest_ps [ skipped ] Need ps-protocol main.mysqltest_tracking_info [ pass ] 6 main.mysqltest_tracking_info_debug [ pass ] 1 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.name_const_replacement [ pass ] 27 main.name_resolution_cache_debug [ 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 main.negation_elimination [ pass ] 137 main.nested_profiling [ pass ] 3 main.no_binlog [ pass ] 1 main.non_blocking_api [ pass ] 4 main.not_embedded_server [ pass ] 20 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 ] 147 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:45:05 CURRENT_TEST: main.null_key --- /home/srikanth/server/mysql-test/main/null_key.result 2026-04-22 16:18:41.443032072 +0530 +++ /home/srikanth/server/mysql-test/main/null_key.reject 2026-05-25 09:45:04.866846993 +0530 @@ -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,6 +130,9 @@ 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 Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.null_key/' ReplayTest: Loading context main.odbc [ pass ] 17 ReplayTest: Loading context ReplayTest: Loading context main.olap [ pass ] 82 main.openssl_1 [ pass ] 407 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 232 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 339 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 1253 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:45:09 CURRENT_TEST: main.opt_hints_subquery --- /home/srikanth/server/mysql-test/main/opt_hints_subquery.result 2026-04-22 18:12:11.939609610 +0530 +++ /home/srikanth/server/mysql-test/main/opt_hints_subquery.reject 2026-05-25 09:45:09.582923996 +0530 @@ -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 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 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 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 '/home/srikanth/server/bld/mysql-test/var/log/main.opt_hints_subquery/' main.opt_trace_default [ pass ] 1 main.opt_trace_index_merge [ pass ] 1380 main.opt_trace_security [ pass ] 38 main.opt_trace_ucs2 [ pass ] 5 main.order_by-mdev-10122 [ pass ] 13 ReplayTest: Loading context ReplayTest: Loading context main.order_by_optimizer [ pass ] 32 main.order_by_sortkey [ pass ] 561 ReplayTest: Loading context main.order_by_zerolength-4285 [ pass ] 14 main.order_fill_sortbuf [ pass ] 278 ReplayTest: Loading context main.outfile [ pass ] 19 main.outfile_loaddata [ pass ] 24 main.overflow [ pass ] 2 main.packet [ pass ] 2 ReplayTest: Loading context ReplayTest: Loading context main.parser [ pass ] 192 main.parser_not_embedded [ pass ] 24 main.parser_stack [ pass ] 975 main.password_expiration [ pass ] 53 main.perror [ pass ] 13 main.perror-win [ skipped ] Need windows main.plugin_vars [ pass ] 663 main.precedence [ pass ] 1019 ReplayTest: Loading context main.precedence_bugs [ pass ] 17 main.preload [ pass ] 1894 main.prepare [ pass ] 14 main.processlist [ pass ] 5015 main.processlist_notembedded [ pass ] 5026 main.profiling [ pass ] 64 main.ps_10nestset [ pass ] 9 ReplayTest: Loading context main.ps_11bugs [ pass ] 31 main.ps_1general [ pass ] 169 main.ps_2myisam [ pass ] 142 main.ps_4heap [ pass ] 134 main.ps_5merge [ pass ] 298 main.ps_ddl [ pass ] 367 main.ps_ddl1 [ pass ] 62 main.ps_error [ pass ] 1433 main.ps_grant [ pass ] 14 main.ps_max_subselect-5113 [ pass ] 1 main.ps_not_windows [ pass ] 2 main.public_basic [ pass ] 18 main.public_privileges [ pass ] 41 main.query_cache_28249 [ pass ] 19 main.query_cache_merge [ pass ] 525 main.query_cache_ps_no_prot [ pass ] 44 main.query_cache_ps_ps_prot [ skipped ] Test requires: ps-protocol enabled, other protocols disabled main.query_cache_with_views [ pass ] 26 main.quick_select_4161 [ pass ] 3 ReplayTest: Loading context ReplayTest: Loading context main.range_aria_dbt3 [ pass ] 1487 main.range_debug [ pass ] 28 main.read_only [ pass ] 39 main.rename [ pass ] 22 main.renamedb [ pass ] main.repair_symlink-5543 [ pass ] 8 main.replace [ pass ] 4 main.replace_returning [ pass ] 16 main.replace_returning_datatypes [ pass ] 2 main.replace_returning_err [ pass ] 5 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-05-25 09:45:40 CURRENT_TEST: main.replay_server_test --- /home/srikanth/server/mysql-test/main/replay_server_test.result 2026-05-06 19:35:21.685693683 +0530 +++ /home/srikanth/server/mysql-test/main/replay_server_test.reject 2026-05-25 09:45:40.542430669 +0530 @@ -1,4 +1,11 @@ -REPLAY_SERVER_SOCKET is NOT set +REPLAY_SERVER_SOCKET is set: /home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.sock +Checking socket: /home/srikanth/server/bld/mysql-test/var/extra_server_1/mysqld.sock +Socket exists: YES +Is socket: YES +Replay server PID: 477897 +Process running: YES +Socket directory: /home/srikanth/server/bld/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 '/home/srikanth/server/bld/mysql-test/var/log/main.replay_server_test/' main.reset_connection [ pass ] 5 main.rollback [ pass ] 3 main.round [ 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 main.row [ pass ] 106 main.rowid_filter [ pass ] 817 main.rowid_filter_aria [ pass ] 1945 main.schema [ pass ] 15 ReplayTest: Loading context main.second_frac-9175 [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:45:48 CURRENT_TEST: main.select --- /home/srikanth/server/mysql-test/main/select.result 2026-04-22 18:12:11.960620118 +0530 +++ /home/srikanth/server/mysql-test/main/select.reject 2026-05-25 09:45:47.991552873 +0530 @@ -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 369. 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 369. 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 369. 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 369. 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 ` `; @@ -5703,7 +5710,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 '/home/srikanth/server/bld/mysql-test/var/log/main.select-nm/' ReplayTest: Loading context main.select_debug [ pass ] 21 ReplayTest: Loading context ReplayTest: Query error: Invalid default value for 'kid' ReplayTest: In file "/home/srikanth/server/mysql-test/main/select_found.test" ReplayTest: At line 76 main.select_found [ fail ] Test ended at 2026-05-25 09:45:48 CURRENT_TEST: main.select_found --- /home/srikanth/server/mysql-test/main/select_found.result 2025-09-15 08:40:26.922327773 +0530 +++ /home/srikanth/server/mysql-test/main/select_found.reject 2026-05-25 09:45:48.705564593 +0530 @@ -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 '/home/srikanth/server/bld/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: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:45:52 CURRENT_TEST: main.select_jcl6 --- /home/srikanth/server/mysql-test/main/select_jcl6.result 2026-04-22 18:12:11.961620619 +0530 +++ /home/srikanth/server/mysql-test/main/select_jcl6.reject 2026-05-25 09:45:52.010618853 +0530 @@ -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 369. 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 369. 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 369. 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 369. 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 ` `; @@ -5715,7 +5722,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 '/home/srikanth/server/bld/mysql-test/var/log/main.select_jcl6-nm/' ReplayTest: Loading context ReplayTest: Loading context main.select_safe [ pass ] 32 main.sequence_debug [ pass ] 4 main.servers_upgrade [ pass ] 1437 main.session_user [ pass ] 11 main.set_authorization [ pass ] 1431 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 128 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 "/home/srikanth/server/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 "/home/srikanth/server/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 "/home/srikanth/server/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 "/home/srikanth/server/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 "/home/srikanth/server/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 "/home/srikanth/server/mysql-test/main/set_operation_oracle.test" ReplayTest: At line 66 main.set_operation_oracle [ fail ] Test ended at 2026-05-25 09:45:56 CURRENT_TEST: main.set_operation_oracle --- /home/srikanth/server/mysql-test/main/set_operation_oracle.result 2026-05-06 15:05:32.406048807 +0530 +++ /home/srikanth/server/mysql-test/main/set_operation_oracle.reject 2026-05-25 09:45:56.679695543 +0530 @@ -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 ALL NULL NULL NULL NULL 2 100.00 -6 DERIVED ALL NULL NULL NULL NULL 2 100.00 -4 DERIVED 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 ALL NULL NULL NULL NULL NULL NULL -5 INTERSECT t3 ALL NULL NULL NULL NULL 2 100.00 -NULL INTERSECT RESULT ALL NULL NULL NULL NULL NULL NULL -7 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used -NULL UNION RESULT 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 ALL NULL NULL NULL NULL 4 100.00 -6 DERIVED ALL NULL NULL NULL NULL 4 100.00 -4 DERIVED 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 ALL NULL NULL NULL NULL NULL NULL -5 UNION t1 ALL NULL NULL NULL NULL 2 100.00 -NULL UNION RESULT ALL NULL NULL NULL NULL NULL NULL -7 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used -NULL UNION RESULT 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 ALL NULL NULL NULL NULL 2 100.00 -6 DERIVED ALL NULL NULL NULL NULL 2 100.00 -4 DERIVED 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 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 ALL NULL NULL NULL NULL 2 100.00 -6 DERIVED ALL NULL NULL NULL NULL 2 100.00 -4 DERIVED 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 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 ALL NULL NULL NULL NULL 4 100.00 -6 DERIVED ALL NULL NULL NULL NULL 4 100.00 -4 DERIVED 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 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 ALL NULL NULL NULL NULL 4 100.00 -6 DERIVED ALL NULL NULL NULL NULL 4 100.00 -4 DERIVED 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 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 '/home/srikanth/server/bld/mysql-test/var/log/main.set_operation_oracle/' main.set_password [ pass ] 45 ReplayTest: Loading context main.set_statement [ pass ] 888 main.set_statement_debug [ pass ] 6 main.set_statement_notembedded [ pass ] 2007 main.set_statement_profiling [ pass ] 1 main.show [ pass ] 20 main.show_bad_definer-5553 [ pass ] 3 main.show_create_user [ pass ] 7 main.show_explain_ps [ pass ] 40 main.show_function_with_pad_char_to_full_length [ pass ] 4 main.show_profile [ pass ] 3 main.show_row_order-9226 [ pass ] 4 main.shutdown [ pass ] 323 main.sighup-6580 [ pass ] 3 main.signal [ pass ] 129 main.signal_code [ pass ] 3 main.signal_demo1 [ pass ] 23 main.signal_demo2 [ pass ] 14 main.signal_demo3 [ pass ] 8 main.signal_sqlmode [ pass ] 9 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.single_delete_update [ pass ] 537 main.skip_slave_start [ pass ] 1429 main.slowlog_integrity [ pass ] 28 main.sp-anchor-row-type-cursor [ pass ] 87 main.sp-anchor-row-type-table [ pass ] 83 main.sp-anchor-type [ pass ] 100 main.sp-bugs [ pass ] 58 main.sp-bugs2 [ pass ] 23 main.sp-code [ pass ] 50 main.sp-condition-handler [ pass ] 342 main.sp-cursor [ pass ] 1702 main.sp-default-param [ pass ] 44 main.sp-destruct [ pass ] 58 main.sp-dynamic [ pass ] 39 main.sp-error [ pass ] 188 main.sp-expr [ pass ] 10 main.sp-fib [ pass ] 8 main.sp-for-loop [ pass ] 15 main.sp-i_s_columns [ pass ] 438 main.sp-inout [ pass ] 136 main.sp-lock [ pass ] 79 main.sp-memory-leak [ pass ] 1 main.sp-no-code [ skipped ] Does not run with debug binaries main.sp-no-valgrind [ pass ] 5 main.sp-package [ pass ] 16 main.sp-package-code [ pass ] 16 main.sp-package-security [ pass ] 24 main.sp-prelocking [ pass ] 55 main.sp-security [ pass ] 205 main.sp-security-anchor-type [ pass ] 19 main.sp-security-debug [ pass ] 31 main.sp-sys_refcursor [ pass ] 44 main.sp-threads [ pass ] 19 main.sp-ucs2 [ pass ] 18 main.sp-vars [ pass ] 97 main.sp2 [ pass ] 54 main.sp_gis [ pass ] 14 main.sp_missing_4665 [ pass ] 2 main.sp_notembedded [ pass ] 43 main.sp_stress_case [ pass ] 4915 main.sp_sync [ pass ] 15 main.sp_validation [ pass ] 327 main.spatial_testing_functions_coveredby [ pass ] 34 main.spatial_utility_function_geohash [ pass ] 47 main.spatial_utility_function_isvalid [ pass ] 14 main.spatial_utility_function_simplify [ pass ] 18 main.spatial_utility_function_validate [ pass ] 5 main.sql_mode [ pass ] 41 main.sql_mode_pad_char_to_full_length [ 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 main.ssl [ pass ] 5118 main.ssl_ca [ pass ] 32 main.ssl_cipher_tlsv13 [ 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.ssl_compress [ pass ] 5262 main.ssl_connect [ pass ] 1041 main.ssl_crl_clients [ pass ] 71 main.ssl_fp [ pass ] 42 main.ssl_system_ca 'good' [ pass ] 18 main.ssl_timeout [ pass ] 5310 main.stack [ pass ] 11 main.stack-crash [ pass ] 7 main.start_slave_until [ pass ] 2 main.stat_tables-enospc [ pass ] 917 main.stat_tables_missing [ pass ] 5 main.statement-expr [ pass ] 7 main.statistics_close [ pass ] 3 main.status2 [ pass ] 9 main.status_bug17954 [ pass ] 4 main.str_to_datetime_457 [ pass ] 2 main.strict_autoinc_1myisam [ pass ] 4 main.strict_autoinc_3heap [ pass ] 2 main.strings [ pass ] 7 main.subquery_merge [ 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 main.subselect3 [ fail ] Test ended at 2026-05-25 09:46:45 CURRENT_TEST: main.subselect3 --- /home/srikanth/server/mysql-test/main/subselect3.result 2026-04-22 18:12:11.978629125 +0530 +++ /home/srikanth/server/mysql-test/main/subselect3.reject 2026-05-25 09:46:44.820488704 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:46:45 CURRENT_TEST: main.subselect3_jcl6 --- /home/srikanth/server/mysql-test/main/subselect3_jcl6.result 2026-04-22 18:12:11.978629125 +0530 +++ /home/srikanth/server/mysql-test/main/subselect3_jcl6.reject 2026-05-25 09:46:45.726503672 +0530 @@ -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 '/home/srikanth/server/bld/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 ] 453 main.subselect_debug [ pass ] 4 ReplayTest: Loading context main.subselect_exists2in_costmat [ pass ] 262 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 260 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 306 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-05-25 09:46:48 CURRENT_TEST: main.subselect_mat_cost_bugs --- /home/srikanth/server/mysql-test/main/subselect_mat_cost_bugs.result 2026-04-22 18:12:11.981630626 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_mat_cost_bugs.reject 2026-05-25 09:46:48.635551743 +0530 @@ -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 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 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 !<`test`.`t2`.`b`>((`test`.`t2`.`b`,(/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t2`.`b` having trigcond((`test`.`t2`.`b`) = (min(`test`.`t1`.`a`)))))) +Note 1003 /* select#1 */ select `test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t2` where !<`test`.`t2`.`b`>((`test`.`t2`.`b`,(/* select#2 */ select min(`test`.`t1`.`a`) from `test`.`t1` join `test`.`t2` where `test`.`t2`.`c` = `test`.`t2`.`b` having trigcond((`test`.`t2`.`b`) = ((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 '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_mat_cost_bugs/' main.subselect_notembedded [ pass ] 118 main.subselect_nulls [ 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 main.subselect_sj [ fail ] Test ended at 2026-05-25 09:46:52 CURRENT_TEST: main.subselect_sj --- /home/srikanth/server/mysql-test/main/subselect_sj.result 2026-04-22 18:12:11.982631127 +0530 +++ /home/srikanth/server/mysql-test/main/subselect_sj.reject 2026-05-25 09:46:51.905605797 +0530 @@ -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 (<`test`.`t2`.`d`,`test`.`t1`.`b`>((`test`.`t2`.`d`,(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and (`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 (<`test`.`t2`.`d`,`test`.`t1`.`b`>((`test`.`t2`.`d`,(/* select#3 */ select `test`.`t3`.`e` from `test`.`t3` where `test`.`t1`.`b` = `test`.`t3`.`e` and (`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 '/home/srikanth/server/bld/mysql-test/var/log/main.subselect_sj/' main.subselect_sj_aria [ pass ] 11 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 ] 64 main.subselect_union_rand [ pass ] 3 main.sum_distinct [ pass ] 261 main.symlink [ pass ] 388 main.symlink-aria-11902 [ pass ] 32 main.symlink-myisam-11902 [ pass ] 22 main.synchronization [ pass ] 17 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 ] 28 main.table_keyinfo-6838 [ pass ] 4 main.table_options [ pass ] 23 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 ] 319 main.temp_table_frm [ pass ] 1425 main.temp_table_symlink [ pass ] 11 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.temporal_literal [ pass ] 31 main.temporal_scale_4283 [ pass ] 3 main.thread_id_overflow [ pass ] 7 main.timeout [ pass ] 11 main.timezone [ 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 ReplayTest: Loading context ReplayTest: Loading context main.timezone2 [ fail ] Test ended at 2026-05-25 09:46:59 CURRENT_TEST: main.timezone2 --- /home/srikanth/server/mysql-test/main/timezone2.result 2026-04-22 18:12:11.986633128 +0530 +++ /home/srikanth/server/mysql-test/main/timezone2.reject 2026-05-25 09:46:59.315728356 +0530 @@ -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-05-25 09:46:59' # # 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` = (localtimestamp()) +Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 09:46:59' # # 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` = (localtimestamp()) +Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 09:46:59' # # 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-05-25 09:46:59' 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-05-25 09:46:59' # # 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` = (localtimestamp()) +Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 09:46:59' # # 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` = (localtimestamp()) +Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 09:46:59' # # 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-05-25 09:46:59' 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-05-25 09:46:59' # # 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` = (localtimestamp()) +Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 09:46:59' # # 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` = (localtimestamp()) +Note 1003 select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 09:46:59' # # 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-05-25 09:46:59' DROP TABLE t1; SET time_zone=DEFAULT; # Result length mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.timezone2/' main.timezone3 [ pass ] 9 main.timezone4 [ pass ] 1 main.timezone_grant [ pass ] 21 main.tlsv13 [ pass ] 4414 main.tmp_table_count-7586 [ pass ] 13 main.trigger [ pass ] 3377 main.trigger-compat [ pass ] 46 main.trigger_no_defaults-11698 [ pass ] 4 main.trigger_notembedded [ pass ] 2250 main.trigger_null [ pass ] 47 main.truncate [ pass ] 13 main.truncate_coverage [ pass ] 9 main.truncate_notembedded [ pass ] 4 main.type_binary [ 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.type_bit [ pass ] 206 main.type_bool [ pass ] 1 main.type_char [ 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 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:47:13 CURRENT_TEST: main.type_date --- /home/srikanth/server/mysql-test/main/type_date.result 2026-05-06 15:05:32.415048922 +0530 +++ /home/srikanth/server/mysql-test/main/type_date.reject 2026-05-25 09:47:13.829968689 +0530 @@ -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-05-25' 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 (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-05-25' and (octet_length(DATE'2026-05-25')) = 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-05-26' 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 (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-05-26' and (octet_length(DATE'2026-05-26')) = 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 '/home/srikanth/server/bld/mysql-test/var/log/main.type_date/' ReplayTest: Loading context ReplayTest: Loading context main.type_date_round [ fail ] Test ended at 2026-05-25 09:47:14 CURRENT_TEST: main.type_date_round --- /home/srikanth/server/mysql-test/main/type_date_round.result 2026-05-06 15:05:32.415048922 +0530 +++ /home/srikanth/server/mysql-test/main/type_date_round.reject 2026-05-25 09:47:14.228975301 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:47:15 CURRENT_TEST: main.type_datetime --- /home/srikanth/server/mysql-test/main/type_datetime.result 2026-05-06 15:05:32.415048922 +0530 +++ /home/srikanth/server/mysql-test/main/type_datetime.reject 2026-05-25 09:47:14.852985643 +0530 @@ -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-05-25 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 (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-05-25 00:00:00' and (octet_length(TIMESTAMP'2026-05-25 00:00:00')) = 40 + rand() DROP TABLE t1; # # MDEV-8795 Equal expression propagation does not work for temporal literals Result content mismatch - skipping '/home/srikanth/server/bld/mysql-test/var/log/main.type_datetime/' ReplayTest: Loading context ReplayTest: Loading context main.type_datetime_round [ fail ] Test ended at 2026-05-25 09:47:15 CURRENT_TEST: main.type_datetime_round --- /home/srikanth/server/mysql-test/main/type_datetime_round.result 2026-05-06 15:05:32.415048922 +0530 +++ /home/srikanth/server/mysql-test/main/type_datetime_round.reject 2026-05-25 09:47:15.283992786 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.type_datetime_round/' ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.type_decimal [ pass ] 141 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 383 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 202 main.type_geometry_mix_int [ pass ] 37 ReplayTest: Loading context main.type_hex_hybrid [ 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 main.type_int [ pass ] 263 main.type_interval [ pass ] 2 main.type_json [ pass ] 17 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 ] 232 main.type_num [ pass ] 97 main.type_ranges [ pass ] 30 main.type_row [ pass ] 7 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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 ] 127 main.type_temporal_mariadb53 [ pass ] 6 main.type_temporal_mysql56 [ pass ] 3 main.type_temporal_mysql56_debug [ pass ] 42 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context 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-05-25 09:47:20 CURRENT_TEST: main.type_time --- /home/srikanth/server/mysql-test/main/type_time.result 2026-05-06 15:05:32.417048948 +0530 +++ /home/srikanth/server/mysql-test/main/type_time.reject 2026-05-25 09:47:20.469078742 +0530 @@ -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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 '/home/srikanth/server/bld/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 ] 512 ReplayTest: Loading context ReplayTest: Loading context main.type_time_round [ fail ] Test ended at 2026-05-25 09:47:21 CURRENT_TEST: main.type_time_round --- /home/srikanth/server/mysql-test/main/type_time_round.result 2026-05-06 15:05:32.417048948 +0530 +++ /home/srikanth/server/mysql-test/main/type_time_round.reject 2026-05-25 09:47:21.607097614 +0530 @@ -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 '/home/srikanth/server/bld/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-05-25 09:47:22 CURRENT_TEST: main.type_timestamp --- /home/srikanth/server/mysql-test/main/type_timestamp.result 2026-05-06 15:05:32.417048948 +0530 +++ /home/srikanth/server/mysql-test/main/type_timestamp.reject 2026-05-25 09:47:22.756116670 +0530 @@ -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-05-25 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 (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-05-25 00:00:00' and (octet_length(TIMESTAMP/*WITH LOCAL TIME ZONE*/'2026-05-25 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 05:30: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 08:44: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 08:44: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 08:44: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 '/home/srikanth/server/bld/mysql-test/var/log/main.type_timestamp-64bit/' main.type_timestamp_round [ pass ] 33 ReplayTest: Loading context main.type_uint [ pass ] 64 main.type_varbinary [ pass ] 2 main.type_varchar_mysql41 [ pass ] 31 ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context ReplayTest: Loading context main.type_year [ pass ] 103 main.udf [ pass ] 1480 main.udf_debug_sync [ pass ] 9 main.udf_notembedded [ pass ] 1422 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-05-25 09:47:30 CURRENT_TEST: main.update_single_to_multi --- /home/srikanth/server/mysql-test/main/update_single_to_multi.result 2026-04-22 18:12:11.996638132 +0530 +++ /home/srikanth/server/mysql-test/main/update_single_to_multi.reject 2026-05-25 09:47:30.663247869 +0530 @@ -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 '/home/srikanth/server/bld/mysql-test/var/log/main.update_single_to_multi/' main.upgrade_MDEV-19650 [ pass ] 670 main.upgrade_MDEV-23102-1 [ pass ] 1343 main.upgrade_MDEV-23102-2 [ pass ] 1277 main.upgrade_geometrycolumn_procedure_definer [ pass ] 640 main.upgrade_mdev_24363 [ pass ] 649 main.userstat-badlogin-4824 [ pass ] 4 ReplayTest: Loading context ReplayTest: Loading context main.varbinary [ pass ] 24 main.variables_community [ pass ] 2 main.vector_aria [ pass ] 12 main.vector_debug [ pass ] 5 main.vector_funcs [ pass ] 20 main.vector_utf16 [ pass ] 1 main.view_alias [ pass ] 20 main.view_debug [ pass ] 8 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 ] 318 main.wait_timeout [ pass ] 6133 main.warnings_engine_disabled [ pass ] 7 main.win_as_arg_to_aggregate_func [ pass ] 7 main.win_avg [ pass ] 4 main.win_big [ pass ] 329 main.win_big-mdev-10092 [ pass ] 14 ReplayTest: Loading context ReplayTest: Loading context main.win_big-mdev-11697 [ pass ] 2792 main.win_bit [ pass ] 5 ReplayTest: Loading context ReplayTest: Loading context main.win_empty_over [ pass ] 24 main.win_first_last_value [ pass ] 10 main.win_i_s [ pass ] 5 main.win_insert_select [ pass ] 7 main.win_lead_lag [ pass ] 8 main.win_min_max [ pass ] 18 main.win_nth_value [ pass ] 2 ReplayTest: Loading context main.win_ntile [ pass ] 20 main.win_orderby [ pass ] 7 main.win_percent_cume [ pass ] 3 main.win_percentile [ pass ] 23 main.win_rank [ pass ] 9 main.win_std [ pass ] 12 main.win_sum [ pass ] 4 main.windows [ skipped ] Need windows main.windows_debug [ skipped ] Need windows main.xa_sync [ pass ] 5 main.xml [ pass ] 38 main.rpl_mysql_upgrade_slave_repo_check 'mix' [ pass ] 2719 main.column_compression_rpl 'mix' [ pass ] 753 main.auth_rpl 'mix' [ pass ] 307 main.invisible_binlog 'mix' [ pass ] 261 main.rpl_mysqldump_slave 'mix' [ pass ] 887 main.create_or_replace2 'row' [ pass ] 270 main.column_compression_rpl 'row' [ pass ] 775 main.stat_tables_repl 'row' [ pass ] 275 main.long_unique_bugs_replication 'row' [ pass ] 278 main.auth_rpl 'row' [ pass ] 398 main.invisible_binlog 'row' [ pass ] 260 main.rpl_mysqldump_slave 'row' [ pass ] 834 main.column_compression_rpl 'stmt' [ pass ] 775 main.ps_show_log 'stmt' [ pass ] 264 main.auth_rpl 'stmt' [ pass ] 393 main.invisible_binlog 'stmt' [ pass ] 265 main.rpl_mysqldump_slave 'stmt' [ pass ] 843 -------------------------------------------------------------------------- The servers were restarted 375 times Spent 1176.428 of 2784 seconds executing testcases Completed: Failed 124/1349 tests, 90.81% 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.stat_tables_innodb main.multi_update main.partition_datatype main.partition_mrr_innodb main.index_merge_innodb main.cte_recursive main.subselect_sj2_mat 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_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.user_var main.variables main.myisam main.selectivity_no_engine main.analyze_stmt_privileges2 main.ansi main.cte_update_delete 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.debug_replay_test main.delete_single_to_multi main.empty_string_literal main.explain main.func_group main.func_like main.gis main.grant_explain_non_select 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_turkish_ci_casefold main.ctype_utf8mb4_uca1400_ai_ci_casefold main.ctype_utf8mb4_general1400_as_ci_casefold main.order_by main.ctype_utf8mb4_general_ci_ws main.ctype_utf8mb4_0900_ai_ci_casefold main.ctype_utf8mb4_unicode_ci_casefold main.ctype_utf8mb4_general_ci_casefold main.analyze_format_json main.ctype_utf8mb4_unicode_520_ci_casefold main.myisam main.mysqld_help_crash-9183 main.mysqld--help main.mysqld_option_err main.mysqld--defaults-file main.mysqladmin main.mysqld--help-aria 64 tests were skipped, 37 by the test itself. Stopping replay server... Replay server stopped