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
* it also adds an "explain select" statement to the test so that the fprintf calls
can print the computed intervals to mysqld.1.err
Signed-off-by: Michael Okoko <okokomichaels@outlook.com>
Copy file name to clipboardExpand all lines: mysql-test/main/statistics_json.result
+5-27Lines changed: 5 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -67,33 +67,11 @@ test t1 d 1 25 0.0000 8.0000 1.0000 10 JSON [
67
67
"21",
68
68
"23"
69
69
]
70
-
SELECT * FROM t1;
71
-
a b c d
72
-
1 1 1 1
73
-
2 2 2 2
74
-
3 3 3 3
75
-
4 4 4 4
76
-
5 5 5 5
77
-
6 6 6 6
78
-
7 7 7 7
79
-
8 8 8 8
80
-
9 9 9 9
81
-
10 10 10 10
82
-
11 11 11 11
83
-
12 12 12 12
84
-
13 13 13 13
85
-
14 14 14 14
86
-
15 15 15 15
87
-
16 16 16 16
88
-
17 17 17 17
89
-
18 18 18 18
90
-
19 19 19 19
91
-
20 20 20 20
92
-
21 21 21 21
93
-
22 22 22 22
94
-
23 23 23 23
95
-
24 24 24 24
96
-
25 25 25 25
70
+
explain extended select * from t1 where b between '20' and '70';
71
+
id select_type table type possible_keys key key_len ref rows filtered Extra
72
+
1 SIMPLE t1 ALL NULL NULL NULL NULL 25 10.00 Using where
73
+
Warnings:
74
+
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 `test`.`t1`.`b` between '20' and '70'
97
75
UPDATE mysql.column_stats SET histogram='["1", {"a": "b"}, "2"]' WHERE table_name='t1';
0 commit comments