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/main/group_min_max.result
+4-4
Original file line number
Diff line number
Diff line change
@@ -2080,27 +2080,27 @@ id select_type table type possible_keys key key_len ref rows Extra
2080
2080
explain extended select a1,a2,min(b),max(b) from t1
2081
2081
where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (c > 'a111') group by a1,a2;
2082
2082
id select_type table type possible_keys key key_len ref rows filtered Extra
2083
-
1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 130 NULL 276 99.22 Using where; Using index
2083
+
1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 130 NULL 276 98.44 Using where; Using index
2084
2084
Warnings:
2085
2085
Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,min(`test`.`t1`.`b`) AS `min(b)`,max(`test`.`t1`.`b`) AS `max(b)` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`c` > 'a111' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`
2086
2086
explain extended select a1,a2,b,min(c),max(c) from t1
2087
2087
where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (d > 'xy2') group by a1,a2,b;
2088
2088
id select_type table type possible_keys key key_len ref rows filtered Extra
2089
-
1 SIMPLE t1 ALL idx_t1_0,idx_t1_1,idx_t1_2 NULL NULL NULL 512 40.43 Using where; Using temporary; Using filesort
2089
+
1 SIMPLE t1 ALL idx_t1_0,idx_t1_1,idx_t1_2 NULL NULL NULL 512 26.95 Using where; Using temporary; Using filesort
2090
2090
Warnings:
2091
2091
Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b`,min(`test`.`t1`.`c`) AS `min(c)`,max(`test`.`t1`.`c`) AS `max(c)` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`d` > 'xy2' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
2092
2092
explain extended select a1,a2,b,c from t1
2093
2093
where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (d > 'xy2') group by a1,a2,b,c;
2094
2094
id select_type table type possible_keys key key_len ref rows filtered Extra
2095
-
1 SIMPLE t1 ALL idx_t1_0,idx_t1_1,idx_t1_2 NULL NULL NULL 512 40.43 Using where; Using temporary; Using filesort
2095
+
1 SIMPLE t1 ALL idx_t1_0,idx_t1_1,idx_t1_2 NULL NULL NULL 512 26.95 Using where; Using temporary; Using filesort
2096
2096
Warnings:
2097
2097
Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`d` > 'xy2' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`,`test`.`t1`.`c`
2098
2098
explain select a1,a2,b,max(c),min(c) from t2 where (a2 = 'a') and (b = 'b') or (b < 'b') group by a1;
2099
2099
id select_type table type possible_keys key key_len ref rows Extra
2100
2100
1 SIMPLE t2 index NULL idx_t2_1 163 NULL 548 Using where; Using index
2101
2101
explain extended select a1,a2,b from t1 where (a1 = 'b' or a1 = 'd' or a1 = 'a' or a1 = 'c') and (a2 > 'a') and (c > 'a111') group by a1,a2,b;
2102
2102
id select_type table type possible_keys key key_len ref rows filtered Extra
2103
-
1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 130 NULL 276 99.22 Using where; Using index
2103
+
1 SIMPLE t1 range idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 130 NULL 276 98.44 Using where; Using index
2104
2104
Warnings:
2105
2105
Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,`test`.`t1`.`b` AS `b` from `test`.`t1` where (`test`.`t1`.`a1` = 'b' or `test`.`t1`.`a1` = 'd' or `test`.`t1`.`a1` = 'a' or `test`.`t1`.`a1` = 'c') and `test`.`t1`.`a2` > 'a' and `test`.`t1`.`c` > 'a111' group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
2106
2106
explain select a1,a2,min(b),c from t2 where (a2 = 'a') and (c = 'a111') group by a1;
Copy file name to clipboardExpand all lines: mysql-test/main/join_outer.result
+2-2
Original file line number
Diff line number
Diff line change
@@ -2795,15 +2795,15 @@ test.t3 analyze status OK
2795
2795
explain extended select * from t1 left join t3 on t1.a=t3.b and t3.a<5;
2796
2796
id select_type table type possible_keys key key_len ref rows filtered Extra
2797
2797
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
2798
-
1 SIMPLE t3 ALL NULL NULL NULL NULL 1000 1.96 Using where
2798
+
1 SIMPLE t3 ALL NULL NULL NULL NULL 1000 0.50 Using where
2799
2799
Warnings:
2800
2800
Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t1` left join `test`.`t3` on(`test`.`t3`.`b` = `test`.`t1`.`a` and `test`.`t3`.`a` < 5) where 1
2801
2801
# t3.filtered must less than 100%, too:
2802
2802
explain extended select * from t1 left join (t3 join t2) on t1.a=t3.b and t3.a<5;
2803
2803
id select_type table type possible_keys key key_len ref rows filtered Extra
2804
2804
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
2805
2805
1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00
2806
-
1 SIMPLE t3 ALL NULL NULL NULL NULL 1000 1.96 Using where
2806
+
1 SIMPLE t3 ALL NULL NULL NULL NULL 1000 0.50 Using where
2807
2807
Warnings:
2808
2808
Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t2`.`a` AS `a` from `test`.`t1` left join (`test`.`t3` join `test`.`t2`) on(`test`.`t3`.`b` = `test`.`t1`.`a` and `test`.`t3`.`a` < 5) where 1
Copy file name to clipboardExpand all lines: mysql-test/main/join_outer_jcl6.result
+2-2
Original file line number
Diff line number
Diff line change
@@ -2802,15 +2802,15 @@ test.t3 analyze status OK
2802
2802
explain extended select * from t1 left join t3 on t1.a=t3.b and t3.a<5;
2803
2803
id select_type table type possible_keys key key_len ref rows filtered Extra
2804
2804
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
2805
-
1 SIMPLE t3 hash_ALL NULL #hash#$hj 5 test.t1.a 1000 1.96 Using where; Using join buffer (flat, BNLH join)
2805
+
1 SIMPLE t3 hash_ALL NULL #hash#$hj 5 test.t1.a 1000 0.50 Using where; Using join buffer (flat, BNLH join)
2806
2806
Warnings:
2807
2807
Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b` from `test`.`t1` left join `test`.`t3` on(`test`.`t3`.`b` = `test`.`t1`.`a` and `test`.`t3`.`a` < 5 and `test`.`t1`.`a` is not null) where 1
2808
2808
# t3.filtered must less than 100%, too:
2809
2809
explain extended select * from t1 left join (t3 join t2) on t1.a=t3.b and t3.a<5;
2810
2810
id select_type table type possible_keys key key_len ref rows filtered Extra
2811
2811
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00
2812
2812
1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where; Using join buffer (flat, BNL join)
2813
-
1 SIMPLE t3 hash_ALL NULL #hash#$hj 5 test.t1.a 1000 1.96 Using where; Using join buffer (incremental, BNLH join)
2813
+
1 SIMPLE t3 hash_ALL NULL #hash#$hj 5 test.t1.a 1000 0.50 Using where; Using join buffer (incremental, BNLH join)
2814
2814
Warnings:
2815
2815
Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`b` AS `b`,`test`.`t2`.`a` AS `a` from `test`.`t1` left join (`test`.`t3` join `test`.`t2`) on(`test`.`t3`.`b` = `test`.`t1`.`a` and `test`.`t3`.`a` < 5 and `test`.`t1`.`a` is not null) where 1
0 commit comments