File: innodb_bug30423.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (101 lines) | stat: -rw-r--r-- 3,990 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
set global innodb_stats_method = default;
select @@innodb_stats_method;
@@innodb_stats_method
nulls_equal
select count(*) from bug30243_3 where org_id is not NULL;
count(*)
20
select count(*) from bug30243_3 where org_id is NULL;
count(*)
16384
select count(*) from bug30243_2 where org_id is not NULL;
count(*)
224
select count(*) from bug30243_2 where org_id is NULL;
count(*)
65536
select @@innodb_stats_method;
@@innodb_stats_method
nulls_equal
analyze table bug30243_1;
Table	Op	Msg_type	Msg_text
test.bug30243_1	analyze	status	OK
analyze table bug30243_2;
Table	Op	Msg_type	Msg_text
test.bug30243_2	analyze	status	OK
analyze table bug30243_3;
Table	Op	Msg_type	Msg_text
test.bug30243_3	analyze	status	OK
set global innodb_stats_method = "NULL";
ERROR 42000: Variable 'innodb_stats_method' can't be set to the value of 'NULL'
set global innodb_stats_method = "nulls_ignored";
select @@innodb_stats_method;
@@innodb_stats_method
nulls_ignored
analyze table bug30243_1;
Table	Op	Msg_type	Msg_text
test.bug30243_1	analyze	status	OK
analyze table bug30243_2;
Table	Op	Msg_type	Msg_text
test.bug30243_2	analyze	status	OK
analyze table bug30243_3;
Table	Op	Msg_type	Msg_text
test.bug30243_3	analyze	status	OK
explain SELECT COUNT(*), 0
FROM bug30243_1 orgs
LEFT JOIN bug30243_3 sa_opportunities
ON orgs.org_id=sa_opportunities.org_id
LEFT JOIN bug30243_2 contacts
ON orgs.org_id=contacts.org_id ;
id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	filtered	Extra
1	SIMPLE	orgs	NULL	index	NULL	org_id	4	NULL	ROWS	100.00	Using index
1	SIMPLE	sa_opportunities	NULL	ref	org_id	org_id	5	test.orgs.org_id	ROWS	100.00	Using index
1	SIMPLE	contacts	NULL	ref	contacts$org_id	contacts$org_id	5	test.orgs.org_id	ROWS	100.00	Using index
Warnings:
Note	1003	/* select#1 */ select count(0) AS `COUNT(*)`,0 AS `0` from `test`.`bug30243_1` `orgs` left join `test`.`bug30243_3` `sa_opportunities` on((`test`.`sa_opportunities`.`org_id` = `test`.`orgs`.`org_id`)) left join `test`.`bug30243_2` `contacts` on((`test`.`contacts`.`org_id` = `test`.`orgs`.`org_id`)) where true
select @@innodb_stats_method;
@@innodb_stats_method
nulls_ignored
set global innodb_stats_method = "nulls_unequal";
select @@innodb_stats_method;
@@innodb_stats_method
nulls_unequal
analyze table bug30243_1;
Table	Op	Msg_type	Msg_text
test.bug30243_1	analyze	status	OK
analyze table bug30243_2;
Table	Op	Msg_type	Msg_text
test.bug30243_2	analyze	status	OK
analyze table bug30243_3;
Table	Op	Msg_type	Msg_text
test.bug30243_3	analyze	status	OK
explain SELECT COUNT(*), 0
FROM bug30243_1 orgs
LEFT JOIN bug30243_3 sa_opportunities
ON orgs.org_id=sa_opportunities.org_id
LEFT JOIN bug30243_2 contacts
ON orgs.org_id=contacts.org_id;
id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	filtered	Extra
1	SIMPLE	orgs	NULL	index	NULL	org_id	4	NULL	ROWS	100.00	Using index
1	SIMPLE	sa_opportunities	NULL	ref	org_id	org_id	5	test.orgs.org_id	ROWS	100.00	Using index
1	SIMPLE	contacts	NULL	ref	contacts$org_id	contacts$org_id	5	test.orgs.org_id	ROWS	100.00	Using index
Warnings:
Note	1003	/* select#1 */ select count(0) AS `COUNT(*)`,0 AS `0` from `test`.`bug30243_1` `orgs` left join `test`.`bug30243_3` `sa_opportunities` on((`test`.`sa_opportunities`.`org_id` = `test`.`orgs`.`org_id`)) left join `test`.`bug30243_2` `contacts` on((`test`.`contacts`.`org_id` = `test`.`orgs`.`org_id`)) where true
Warnings:
Warning	1681	Integer display width is deprecated and will be removed in a future release.
SELECT COUNT(*) FROM table_bug30423 WHERE org_id IS NULL;
COUNT(*)
1024
set global innodb_stats_method = "nulls_unequal";
analyze table table_bug30423;
Table	Op	Msg_type	Msg_text
test.table_bug30423	analyze	status	OK
set global innodb_stats_method = "nulls_ignored";
analyze table table_bug30423;
Table	Op	Msg_type	Msg_text
test.table_bug30423	analyze	status	OK
set global innodb_stats_method = nulls_equal;
drop table bug30243_2;
drop table bug30243_1;
drop table bug30243_3;
drop table table_bug30423;