@@ -4644,7 +4644,7 @@ Warnings:
46444644Note 1003 select `test`.`t1_json`.`a` AS `a` from `test`.`t1_json` where `test`.`t1_json`.`a` < 'b-1a'
46454645analyze select * from t1_json where a > 'zzzzzzzzz';
46464646id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
4647- 1 SIMPLE t1_json ALL NULL NULL NULL NULL 10 10.00 10 .00 0.00 Using where
4647+ 1 SIMPLE t1_json ALL NULL NULL NULL NULL 10 10.00 0 .00 0.00 Using where
46484648drop table ten;
46494649UPDATE mysql.column_stats
46504650SET histogram='["not-what-you-expect"]' WHERE table_name='t1_json';
@@ -4752,7 +4752,7 @@ id select_type table type possible_keys key key_len ref rows r_rows filtered r_f
475247521 SIMPLE t2 ALL NULL NULL NULL NULL 101 101.00 1.98 1.98 Using where
47534753explain extended select * from t2 where city < 'Lagos';
47544754id select_type table type possible_keys key key_len ref rows filtered Extra
4755- 1 SIMPLE t2 ALL NULL NULL NULL NULL 101 50.00 Using where
4755+ 1 SIMPLE t2 ALL NULL NULL NULL NULL 101 1.98 Using where
47564756Warnings:
47574757Note 1003 select `test`.`t2`.`city` AS `city` from `test`.`t2` where `test`.`t2`.`city` < 'Lagos'
47584758drop table t1_bin;
@@ -8164,7 +8164,7 @@ id select_type table type possible_keys key key_len ref rows r_rows filtered r_f
816481641 SIMPLE t1 ALL NULL NULL NULL NULL 100 100.00 33.00 33.00 Using where
81658165analyze select * from t1 where a < 0;
81668166id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
8167- 1 SIMPLE t1 ALL NULL NULL NULL NULL 100 100.00 1.47 0.00 Using where
8167+ 1 SIMPLE t1 ALL NULL NULL NULL NULL 100 100.00 1.00 0.00 Using where
81688168analyze select * from t1 where a > 0;
81698169id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
817081701 SIMPLE t1 ALL NULL NULL NULL NULL 100 100.00 67.00 67.00 Using where
@@ -8189,7 +8189,7 @@ test.t2 analyze status Engine-independent statistics collected
81898189test.t2 analyze status OK
81908190analyze select * from t2 where a < 1;
81918191id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
8192- 1 SIMPLE t2 ALL NULL NULL NULL NULL 1011 1011.00 8.33 0.10 Using where
8192+ 1 SIMPLE t2 ALL NULL NULL NULL NULL 1011 1011.00 0.10 0.10 Using where
81938193analyze select * from t2 where a =100;
81948194id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
819581951 SIMPLE t2 ALL NULL NULL NULL NULL 1011 1011.00 0.10 0.10 Using where
@@ -8237,6 +8237,15 @@ id select_type table type possible_keys key key_len ref rows r_rows filtered r_f
82378237analyze select COUNT(*) FROM t1 WHERE a >='bar';
82388238id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
823982391 SIMPLE t1 ALL NULL NULL NULL NULL 200 200.00 100.00 100.00 Using where
8240+ analyze select COUNT(*) FROM t1 WHERE a < 'aaa';
8241+ id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
8242+ 1 SIMPLE t1 ALL NULL NULL NULL NULL 200 200.00 0.50 0.00 Using where
8243+ analyze select COUNT(*) FROM t1 WHERE a <='aaa';
8244+ id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
8245+ 1 SIMPLE t1 ALL NULL NULL NULL NULL 200 200.00 0.50 0.00 Using where
8246+ analyze select COUNT(*) FROM t1 WHERE a < 'bar';
8247+ id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
8248+ 1 SIMPLE t1 ALL NULL NULL NULL NULL 200 200.00 0.50 0.00 Using where
82408249analyze select COUNT(*) FROM t1 WHERE a <='bar';
82418250id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
824282511 SIMPLE t1 ALL NULL NULL NULL NULL 200 200.00 50.00 50.00 Using where
0 commit comments