You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/suite/rocksdb/r/rocksdb_mrr.result
+8-8
Original file line number
Diff line number
Diff line change
@@ -538,14 +538,14 @@ drop table t20;
538
538
#
539
539
explain select t3.col1 from t3 where t3.col1=20 or t3.col1 between 25 and 28;
540
540
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
541
-
1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using where; Using index
541
+
1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using where; Using index
542
542
Warnings:
543
543
Note 1003 /* select#1 */ select `test`.`t3`.`col1` AS `col1` from `test`.`t3` where ((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28))
544
544
# This will use MRR:
545
545
explain
546
546
select * from t3 where t3.col1=20 or t3.col1 between 25 and 28;
547
547
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
548
-
1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using index condition; Using MRR
548
+
1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using index condition; Using MRR
549
549
Warnings:
550
550
Note 1003 /* select#1 */ select `test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler` from `test`.`t3` where ((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28))
551
551
select * from t3 where t3.col1=20 or t3.col1 between 25 and 28;
@@ -559,7 +559,7 @@ pk1 pk2 col1 filler
559
559
explain
560
560
select * from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0;
561
561
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
562
-
1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using index condition; Using MRR
562
+
1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using index condition; Using MRR
563
563
Warnings:
564
564
Note 1003 /* select#1 */ select `test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler` from `test`.`t3` where (((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28)) and ((`test`.`t3`.`col1` % 2) = 0))
565
565
select * from t3 where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0;
@@ -576,7 +576,7 @@ explain
576
576
select pk1,pk2,col1, filler,mod(t3.col1,2) from t3
577
577
where (t3.col1=20 or t3.col1 between 25 and 28) and mod(t3.col1,2)=0;
578
578
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
579
-
1 SIMPLE t3 NULL range col1 col1 5 NULL 2 100.00 Using index condition; Using MRR
579
+
1 SIMPLE t3 NULL range col1 col1 5 NULL # # Using index condition; Using MRR
580
580
Warnings:
581
581
Note 1003 /* select#1 */ select `test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler`,(`test`.`t3`.`col1` % 2) AS `mod(t3.col1,2)` from `test`.`t3` where (((`test`.`t3`.`col1` = 20) or (`test`.`t3`.`col1` between 25 and 28)) and ((`test`.`t3`.`col1` % 2) = 0))
582
582
select pk1,pk2,col1, filler,mod(t3.col1,2) from t3
select * from t0,t3 where t3.col1=t0.a and mod(t3.pk2,2)=t0.a;
596
596
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
597
-
1 SIMPLE t0 NULL ALL NULL NULL NULL NULL 10 100.00 Using where
598
-
1 SIMPLE t3 NULL ref col1 col1 5 test.t0.a 11 100.00 Using index condition; Using join buffer (Batched Key Access)
597
+
1 SIMPLE t0 NULL ALL NULL NULL NULL NULL # # Using where
598
+
1 SIMPLE t3 NULL ref col1 col1 5 test.t0.a # # Using index condition; Using join buffer (Batched Key Access)
599
599
Warnings:
600
600
Note 1003 /* select#1 */ select `test`.`t0`.`a` AS `a`,`test`.`t3`.`pk1` AS `pk1`,`test`.`t3`.`pk2` AS `pk2`,`test`.`t3`.`col1` AS `col1`,`test`.`t3`.`filler` AS `filler` from `test`.`t0` join `test`.`t3` where ((`test`.`t3`.`col1` = `test`.`t0`.`a`) and ((`test`.`t3`.`pk2` % 2) = `test`.`t0`.`a`))
601
601
select * from t0,t3 where t3.col1=t0.a and mod(t3.pk2,2)=t0.a;
@@ -630,8 +630,8 @@ a pk1 pk2 col1 filler
630
630
explain
631
631
select * from t0 left join t4 using (a) where t4.a is null;
632
632
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t4 NULL eq_ref PRIMARY PRIMARY 4 test.t0.a 1 # Using where; Not exists; Using index; Using join buffer (Batched Key Access)
633
+
1 SIMPLE t0 NULL ALL NULL NULL NULL NULL # # NULL
634
+
1 SIMPLE t4 NULL eq_ref PRIMARY PRIMARY 4 test.t0.a # # Using where; Not exists; Using index; Using join buffer (Batched Key Access)
635
635
Warnings:
636
636
Note 1003 /* select#1 */ select `test`.`t0`.`a` AS `a` from `test`.`t0` left join `test`.`t4` on((`test`.`t4`.`a` = `test`.`t0`.`a`)) where (`test`.`t4`.`a` is null)
637
637
select * from t0 left join t4 using (a) where t4.a is null;
0 commit comments