Commit eab0dc68 authored by Varun Gupta's avatar Varun Gupta

MDEV-21542: main.order_by_pack_big fails sporadically with wrong result

Made the test order_by_pack_big stable
parent 588eac58
......@@ -2,7 +2,7 @@ set @save_rand_seed1= @@RAND_SEED1;
set @save_rand_seed2= @@RAND_SEED2;
set @@RAND_SEED1=810763568, @@RAND_SEED2=600681772;
create table t1(a int);
insert into t1 select seq from seq_1_to_10000 order by rand();
insert into t1 select seq from seq_1_to_10000 order by rand(),seq;
#
# parameters:
# mean mean for the column to be considered
......@@ -85,111 +85,111 @@ set sort_buffer_size=262144*10;
flush status;
select id DIV 100 as x,
MD5(group_concat(substring(names,1,3), substring(address,1,3)
order by substring(names,1,3), substring(address,1,3)))
order by id))
FROM t3
GROUP BY x;
x MD5(group_concat(substring(names,1,3), substring(address,1,3)
order by substring(names,1,3), substring(address,1,3)))
0 c2ecc41f0e37144931dbd51c286d3169
1 65104765025a5550d2070c320c896660
2 d2d10899abcc3be7de55092b260afbfa
3 a44e5be670968b49b0cb1b5665f53cc5
4 c906c31cc6f40c63f1901d257680d71f
5 07ded386a3d789b64462eb9a9525aee1
6 760ff88f2409ccb3319c57c3a38fe7d2
7 320d65f718acf0876c0dbda053129d24
8 73ace6baf48996f86b741105957ce46b
9 cf80b0efda4108abd584ba47fea0158d
10 6f8db75fbae31d381472c16d91c1f52b
11 762315d05abf1d8589eb15238d03d0f3
12 2948a913b6dfea8499605ac342c897a1
13 789c300f6576c27d7f9ed5694b0d8fba
14 8c83fad606cb84de677520dc6fb895f2
15 37f499f1e50d6fb5ecb09e78d1e2e692
16 2a953b23c198cf922a58d5ea5e12db0e
17 ebc1145c9f4324194fc8d85d6e29ed1b
18 2662c807f21177eb6fcdaf4688641819
19 a423cee02d23022f9e2ffbd8a3627a7c
20 0418584d7634ffde4f6988d93f5e2a0f
21 f832993560565217e6dd30f8300c1c11
22 b2ffce93f4fc478e0c1ca96fd4accee3
23 85c7299ac9207a88b6fd9bb69fbf43aa
24 ab2b9e611e3a8c2f470b05552cb82a4d
25 2cb134bd2ecf3d07b702ac1f3f171a9c
26 2e60abcf5605e65075b7e7587f2294a5
27 705872095781fd7a87882606bb8ab423
28 78a7e8ab78c35dae4ddf4c4f593c8cf4
29 943c1fbf466257bb7a4d7af6b6a19165
30 691c2ce1c6d20fdcfbf65b132c80b7a0
31 4854dd9d208e0b45cb2e5b6d0fefe6c8
32 f43993c3d59c03c5cf4c8e2a1ab95533
33 4c5d5e658aba5bd8aa770a86bff05200
34 f531b17fba7abce233f95941b42aad58
35 f44e1f990acfcd7902c5743409412563
36 a7d39877de8502cce6ffbc4809749eba
37 49062ade86448805b6a222707bf45ad0
38 c94368aa13843cc892b75eb71683aaba
39 483247b82751113caab96ea183a9ca3b
40 f6cf9046d05c13ae88ba7a5676b81f89
41 1ca6c62cd730db36d49daca2d1b0ec7c
42 2b519acd4877e780e7200659d01d43af
43 eb59acd9a1bf374468b4986325ec2b83
44 20137caed121517632937703d1011c18
45 72437c79e41164c2b759702cbb36b179
46 3c5479be06f2262e8867e967299bbb3b
47 2084e6be3e7b18019bd874cded1c8bd6
48 efc7de387fa2399a35a59318052a06f4
49 8a734e334febc6f2ca45db6b846be5d4
50 f53fafc0e8d431be62de75e0f16ee745
51 53a0f5f1b88776c84fe22e2c3254444c
52 9b53bc61795233850e5d958a9ba415f5
53 a703edddf3cedbca2d331c96199cf663
54 0e05181a4a223f43e36742021ac012ad
55 04dad2a66800104ed8c7fad8c05135a6
56 913795d9c8c3ddb865b81039a662ba0f
57 fd84229b981c0dcf9f2a79e9d94cf154
58 9ae667ec6ab7c2eb0bf5a06807042e59
59 2e445d3921c94fe2faf400708ea83e8b
60 dcd5f407001d00f8224bb1449254b3a3
61 1aaacf09ce7209ed23fa0875be09a133
62 e5face2b007eeaaa837895a6e32c63f0
63 43a38c4b0243555e9cf655ce60c8403a
64 6b3ca212cd7cf131f4bd8bdd9085618b
65 ffda0a086d4259b9c48bd26391f7ebaf
66 1f392bbb0662c3e1cb97073a5e119570
67 33c8041b5a8341f1b117e40b2f8bd0ee
68 b203f57d48d584ff5479f76ce76e6eba
69 72a6172c2b14abbf64ab74a27f03fc89
70 12a05415f69f217712ac65a0858ddfdc
71 8bdd033aa314600e78585dc42a88c28b
72 b2b70633781346cfa203e243319f6409
73 cb158a725e4f3f1ef6f2053751db07d0
74 82f3963cfebe83618ea21af5fd38d164
75 cfb9e6e451c6855e1a7dce78d7b4cc5a
76 eab0e37d16bbc78b21e234767f5056eb
77 c76407fe3c50d02fba700da0011167cc
78 1339da94058abc3fcfcf61a81e1597b7
79 3c58d27f69d6e927bd0cb1b16bdb30ba
80 1e500d97a85b3dd3a0b4048fe6ad54ae
81 d03d3e0bc34d1aec0569567d0ca25365
82 55d7ddafa551c8b7e0f6aec128ca6442
83 8ee668de06a360b26af96902edd1c12f
84 3b8914e6a79a67037057781cf25b6825
85 37039d22b6e3fb8e26c29eb459ca81ae
86 707da7bd7982b4ba685981bf32b20103
87 c3bf51c8c12289d200c2aa0532b3b6c3
88 5a20abf3322051f8cbc5c0d1d96724e1
89 1e3e3e730c8447afb79331f6740d379d
90 0414da13cd7ac8cc53ed97f9c12f52a8
91 b862c11cc516d750ccac6e10436c6746
92 0e7febc44370fd57a370d3fbdd9bf16c
93 85488f13dd47b028a9db94e136eae19d
94 f9605bb472f52d1775e669b86691e848
95 33b4d6bc8f327e1a48328d5f5071d7e7
96 917e41d300faaedfb5d1a67eafa85ef4
97 b7764a86130d50379833b9606460c2d2
98 f1b5d819e4441898a6278b99859a1774
99 1a4bcfaa64467f4bc03f0f00b27cf063
order by id))
0 3d24cb0237caf81aa74a2dddf367ac23
1 618f9b8b6cefaa268dcb5477eece5e90
2 fbfe93cc7713f852852f66e578d999aa
3 34802712af9c95664f41e789d19fb6e7
4 2d9a4d628013b45cea5301143ec559c5
5 324b8e682ad2233498f36979fddddf30
6 31ccc1ab69c00dcade71f7fda2fad599
7 e059e0279a5654a1c5f6596d220691bf
8 a21e5021cfb19be280f7fa2c2e70608e
9 6230b389a5bb0f9cd464b839e8824d0d
10 f2db66b6c4ad49e406f965a80ff5d224
11 75f39127d968cad28d30707889191d81
12 2e75191c0f32966a9e7675d0ddcf1c1c
13 808b4ecabb9cbb40ff3549c81b21d2f5
14 c7c0c0bbf0ab7558793a86eaca714a3f
15 3065d81035dc9c596bc235ab553f92de
16 13b1b17e93649fe49d6da356c2072c63
17 e3ce0af10608e6467ba4d38b135ff873
18 0f172b310ad772e13630b647e09ef79a
19 26bbfb77888fa151215fe8ff75e448e7
20 fcd6d5113e8178766dc370b470eb053a
21 d3860a17be6da02e17432f2ff80a261f
22 1d0cb7cd3f54c15bd41491e6fa449f12
23 15f95be2574a94677fa7e76ead23e025
24 924abdbb21c79cc7fd11d4d5b87ac339
25 7493978704b5223a4f5dc6d8beb51d90
26 f4ac4696b05577ba4a05334cd131cf94
27 cfd45d4915f342978fb6982a825f6cc2
28 2bd8981c6245c32ea1dc27ef394df94e
29 0e47838fe4be239939424fcef1289002
30 18e291b42da10b04434bdad010a5b66c
31 cbd1bf2554378ef7edd9087d4a8562d4
32 ddb1e7282bb637f7fe3aa3aed149b482
33 1963f2400c8870d67f99c391bc5040c2
34 d2b44d3c13a7a2c83de840892a370f47
35 7ff20517acf5ea901757262eae1edf5e
36 685fbfc47faad4243944d7331a2dee36
37 9d58b82b5f9d369a16c4f2bcc424b412
38 be15aa080dda65c9489892c34a330c30
39 4b52ddf7b599c9a00d094008a464c18c
40 441b03789e58aec883138d9c657a005e
41 e76cc7b1cadcb4f31e0232a0a8458620
42 3581a040fbf210f6942fe591621f0e41
43 acc552d3cba6a900054093c3c6876fc5
44 fd7fa7a0a4a58485a1aa30e804f024af
45 56afedd4f2e8101fbb4402051e9857e8
46 019e4178eccbdd84150f196668e40888
47 132c8e314dd7c9064e1cb4980856531c
48 dcc08184bf2f7cfb640af0c603ff7506
49 691b29183f64480003f8a1a74cd3ac13
50 105da23f1b4a63d755414beca9df20d5
51 30b2e973a0186721f9a7720be6be09e5
52 b307d14c06fd6f27173d683a5596b542
53 2125a788f107a4ba6a364984f7145156
54 aa0793982ae401cd2c1bea949d726ae1
55 e1797ba6b7ecf5f84cda2703f79c878c
56 78fc3f94127c0d5c6b3fa82ac3a8c167
57 b8c6d1e26cfd94aade5e32cf89e05da6
58 1e3481d6ff3b22f6ad739b93afe4c341
59 59e9d5be4a87ee707578a3a8e5d624e9
60 7a00e357826e950ffbe688c3f9a99a97
61 e5a8c0d404f6fb59d9e3dd88b13ba5a7
62 19d22c20fbf76b5b9ac746679ade26e7
63 c96f912f54b9b862532ce959398c76ca
64 86c167171b777a150356f1f083203d24
65 e1bca8d6cc1904a919cce1090e62f34d
66 f5dd3f6267376875239222dbefac87b1
67 d6a2aa26124dd42a9df9fa21b7eb8bce
68 ecd36ba9a56f89d4bf6fa83c2b800985
69 87b64475fd3f4db6dd68a45fb9a825dc
70 f5f7aa5569558b3e6556c72c9dfc429b
71 9e1cc67e0c13d00c771b6bed2fd566cf
72 3a6e7c6ce76a04fa2503d094121d84d5
73 5fd8ba2dd8d36814d06a1d278002e437
74 10db883700dde7289eb640df3a6d6676
75 3ebd59ed119d6dfda3eedc5bf05fd425
76 5008d3ce585f3b2dda2b313c57ebcb0a
77 ac7cee33e39827de02acedb7584acae5
78 3f440facefbd95f905942c75bfe60bbb
79 89639b3145c988c775d9d997c9d356ff
80 a6f8b29a83b2305188c241f2724ea998
81 d79f9bd47505cee69627e8044f7745c2
82 5f8d8b55bc9d5b44f817ada0b9bab2f7
83 411a99ef2e2af45640f0224274979fb5
84 60706cd1eb7dffae3d7a34133c5cb67e
85 272a5d09070b5a0569fb18e144100f8b
86 0f969fd16dd186e9eb099213a82fb119
87 6c48f63ec50e26ba42d8ca074daee9a6
88 83512539cc5a2561426564590d307a58
89 c57cf49bbeaa12aaba2106278681c9cd
90 d248507181561f0aba09182c4326fb11
91 a1e153dd8bb1334bccd73890fafc5ba9
92 d7a0ba2d1241a07abf3691074cecff76
93 466034794d577c41a9716bc9eb903ee2
94 b5e2158feb4290b04a7bdfdec0a17976
95 8a16a27008d033dd6e9074b042021e60
96 ccaa12e89f6de3058b3a2baddc4eff00
97 7fdbf02f369546d0fde2b7db85752e33
98 63b286bb777298397f3acf03fc3e9deb
99 b271f751a4952f86b002b9730bd02c8b
100 cbd5cef546acc0bfa33117d7c1ae58a8
show status like '%sort%';
Variable_name Value
......@@ -206,111 +206,111 @@ set sort_buffer_size=32768;
flush status;
select id DIV 100 as x,
MD5(group_concat(substring(names,1,3), substring(address,1,3)
order by substring(names,1,3), substring(address,1,3)))
order by id))
FROM t3
GROUP BY x;
x MD5(group_concat(substring(names,1,3), substring(address,1,3)
order by substring(names,1,3), substring(address,1,3)))
0 c2ecc41f0e37144931dbd51c286d3169
1 65104765025a5550d2070c320c896660
2 d2d10899abcc3be7de55092b260afbfa
3 a44e5be670968b49b0cb1b5665f53cc5
4 c906c31cc6f40c63f1901d257680d71f
5 07ded386a3d789b64462eb9a9525aee1
6 760ff88f2409ccb3319c57c3a38fe7d2
7 320d65f718acf0876c0dbda053129d24
8 73ace6baf48996f86b741105957ce46b
9 cf80b0efda4108abd584ba47fea0158d
10 6f8db75fbae31d381472c16d91c1f52b
11 762315d05abf1d8589eb15238d03d0f3
12 2948a913b6dfea8499605ac342c897a1
13 789c300f6576c27d7f9ed5694b0d8fba
14 8c83fad606cb84de677520dc6fb895f2
15 37f499f1e50d6fb5ecb09e78d1e2e692
16 2a953b23c198cf922a58d5ea5e12db0e
17 ebc1145c9f4324194fc8d85d6e29ed1b
18 2662c807f21177eb6fcdaf4688641819
19 a423cee02d23022f9e2ffbd8a3627a7c
20 0418584d7634ffde4f6988d93f5e2a0f
21 f832993560565217e6dd30f8300c1c11
22 b2ffce93f4fc478e0c1ca96fd4accee3
23 85c7299ac9207a88b6fd9bb69fbf43aa
24 ab2b9e611e3a8c2f470b05552cb82a4d
25 2cb134bd2ecf3d07b702ac1f3f171a9c
26 2e60abcf5605e65075b7e7587f2294a5
27 705872095781fd7a87882606bb8ab423
28 78a7e8ab78c35dae4ddf4c4f593c8cf4
29 943c1fbf466257bb7a4d7af6b6a19165
30 691c2ce1c6d20fdcfbf65b132c80b7a0
31 4854dd9d208e0b45cb2e5b6d0fefe6c8
32 f43993c3d59c03c5cf4c8e2a1ab95533
33 4c5d5e658aba5bd8aa770a86bff05200
34 f531b17fba7abce233f95941b42aad58
35 f44e1f990acfcd7902c5743409412563
36 a7d39877de8502cce6ffbc4809749eba
37 49062ade86448805b6a222707bf45ad0
38 c94368aa13843cc892b75eb71683aaba
39 483247b82751113caab96ea183a9ca3b
40 f6cf9046d05c13ae88ba7a5676b81f89
41 1ca6c62cd730db36d49daca2d1b0ec7c
42 2b519acd4877e780e7200659d01d43af
43 eb59acd9a1bf374468b4986325ec2b83
44 20137caed121517632937703d1011c18
45 72437c79e41164c2b759702cbb36b179
46 3c5479be06f2262e8867e967299bbb3b
47 2084e6be3e7b18019bd874cded1c8bd6
48 efc7de387fa2399a35a59318052a06f4
49 8a734e334febc6f2ca45db6b846be5d4
50 f53fafc0e8d431be62de75e0f16ee745
51 53a0f5f1b88776c84fe22e2c3254444c
52 9b53bc61795233850e5d958a9ba415f5
53 a703edddf3cedbca2d331c96199cf663
54 0e05181a4a223f43e36742021ac012ad
55 04dad2a66800104ed8c7fad8c05135a6
56 913795d9c8c3ddb865b81039a662ba0f
57 fd84229b981c0dcf9f2a79e9d94cf154
58 9ae667ec6ab7c2eb0bf5a06807042e59
59 2e445d3921c94fe2faf400708ea83e8b
60 dcd5f407001d00f8224bb1449254b3a3
61 1aaacf09ce7209ed23fa0875be09a133
62 e5face2b007eeaaa837895a6e32c63f0
63 43a38c4b0243555e9cf655ce60c8403a
64 6b3ca212cd7cf131f4bd8bdd9085618b
65 ffda0a086d4259b9c48bd26391f7ebaf
66 1f392bbb0662c3e1cb97073a5e119570
67 33c8041b5a8341f1b117e40b2f8bd0ee
68 b203f57d48d584ff5479f76ce76e6eba
69 72a6172c2b14abbf64ab74a27f03fc89
70 12a05415f69f217712ac65a0858ddfdc
71 8bdd033aa314600e78585dc42a88c28b
72 b2b70633781346cfa203e243319f6409
73 cb158a725e4f3f1ef6f2053751db07d0
74 82f3963cfebe83618ea21af5fd38d164
75 cfb9e6e451c6855e1a7dce78d7b4cc5a
76 eab0e37d16bbc78b21e234767f5056eb
77 c76407fe3c50d02fba700da0011167cc
78 1339da94058abc3fcfcf61a81e1597b7
79 3c58d27f69d6e927bd0cb1b16bdb30ba
80 1e500d97a85b3dd3a0b4048fe6ad54ae
81 d03d3e0bc34d1aec0569567d0ca25365
82 55d7ddafa551c8b7e0f6aec128ca6442
83 8ee668de06a360b26af96902edd1c12f
84 3b8914e6a79a67037057781cf25b6825
85 37039d22b6e3fb8e26c29eb459ca81ae
86 707da7bd7982b4ba685981bf32b20103
87 c3bf51c8c12289d200c2aa0532b3b6c3
88 5a20abf3322051f8cbc5c0d1d96724e1
89 1e3e3e730c8447afb79331f6740d379d
90 0414da13cd7ac8cc53ed97f9c12f52a8
91 b862c11cc516d750ccac6e10436c6746
92 0e7febc44370fd57a370d3fbdd9bf16c
93 85488f13dd47b028a9db94e136eae19d
94 f9605bb472f52d1775e669b86691e848
95 33b4d6bc8f327e1a48328d5f5071d7e7
96 917e41d300faaedfb5d1a67eafa85ef4
97 b7764a86130d50379833b9606460c2d2
98 f1b5d819e4441898a6278b99859a1774
99 1a4bcfaa64467f4bc03f0f00b27cf063
order by id))
0 3d24cb0237caf81aa74a2dddf367ac23
1 618f9b8b6cefaa268dcb5477eece5e90
2 fbfe93cc7713f852852f66e578d999aa
3 34802712af9c95664f41e789d19fb6e7
4 2d9a4d628013b45cea5301143ec559c5
5 324b8e682ad2233498f36979fddddf30
6 31ccc1ab69c00dcade71f7fda2fad599
7 e059e0279a5654a1c5f6596d220691bf
8 a21e5021cfb19be280f7fa2c2e70608e
9 6230b389a5bb0f9cd464b839e8824d0d
10 f2db66b6c4ad49e406f965a80ff5d224
11 75f39127d968cad28d30707889191d81
12 2e75191c0f32966a9e7675d0ddcf1c1c
13 808b4ecabb9cbb40ff3549c81b21d2f5
14 c7c0c0bbf0ab7558793a86eaca714a3f
15 3065d81035dc9c596bc235ab553f92de
16 13b1b17e93649fe49d6da356c2072c63
17 e3ce0af10608e6467ba4d38b135ff873
18 0f172b310ad772e13630b647e09ef79a
19 26bbfb77888fa151215fe8ff75e448e7
20 fcd6d5113e8178766dc370b470eb053a
21 d3860a17be6da02e17432f2ff80a261f
22 1d0cb7cd3f54c15bd41491e6fa449f12
23 15f95be2574a94677fa7e76ead23e025
24 924abdbb21c79cc7fd11d4d5b87ac339
25 7493978704b5223a4f5dc6d8beb51d90
26 f4ac4696b05577ba4a05334cd131cf94
27 cfd45d4915f342978fb6982a825f6cc2
28 2bd8981c6245c32ea1dc27ef394df94e
29 0e47838fe4be239939424fcef1289002
30 18e291b42da10b04434bdad010a5b66c
31 cbd1bf2554378ef7edd9087d4a8562d4
32 ddb1e7282bb637f7fe3aa3aed149b482
33 1963f2400c8870d67f99c391bc5040c2
34 d2b44d3c13a7a2c83de840892a370f47
35 7ff20517acf5ea901757262eae1edf5e
36 685fbfc47faad4243944d7331a2dee36
37 9d58b82b5f9d369a16c4f2bcc424b412
38 be15aa080dda65c9489892c34a330c30
39 4b52ddf7b599c9a00d094008a464c18c
40 441b03789e58aec883138d9c657a005e
41 e76cc7b1cadcb4f31e0232a0a8458620
42 3581a040fbf210f6942fe591621f0e41
43 acc552d3cba6a900054093c3c6876fc5
44 fd7fa7a0a4a58485a1aa30e804f024af
45 56afedd4f2e8101fbb4402051e9857e8
46 019e4178eccbdd84150f196668e40888
47 132c8e314dd7c9064e1cb4980856531c
48 dcc08184bf2f7cfb640af0c603ff7506
49 691b29183f64480003f8a1a74cd3ac13
50 105da23f1b4a63d755414beca9df20d5
51 30b2e973a0186721f9a7720be6be09e5
52 b307d14c06fd6f27173d683a5596b542
53 2125a788f107a4ba6a364984f7145156
54 aa0793982ae401cd2c1bea949d726ae1
55 e1797ba6b7ecf5f84cda2703f79c878c
56 78fc3f94127c0d5c6b3fa82ac3a8c167
57 b8c6d1e26cfd94aade5e32cf89e05da6
58 1e3481d6ff3b22f6ad739b93afe4c341
59 59e9d5be4a87ee707578a3a8e5d624e9
60 7a00e357826e950ffbe688c3f9a99a97
61 e5a8c0d404f6fb59d9e3dd88b13ba5a7
62 19d22c20fbf76b5b9ac746679ade26e7
63 c96f912f54b9b862532ce959398c76ca
64 86c167171b777a150356f1f083203d24
65 e1bca8d6cc1904a919cce1090e62f34d
66 f5dd3f6267376875239222dbefac87b1
67 d6a2aa26124dd42a9df9fa21b7eb8bce
68 ecd36ba9a56f89d4bf6fa83c2b800985
69 87b64475fd3f4db6dd68a45fb9a825dc
70 f5f7aa5569558b3e6556c72c9dfc429b
71 9e1cc67e0c13d00c771b6bed2fd566cf
72 3a6e7c6ce76a04fa2503d094121d84d5
73 5fd8ba2dd8d36814d06a1d278002e437
74 10db883700dde7289eb640df3a6d6676
75 3ebd59ed119d6dfda3eedc5bf05fd425
76 5008d3ce585f3b2dda2b313c57ebcb0a
77 ac7cee33e39827de02acedb7584acae5
78 3f440facefbd95f905942c75bfe60bbb
79 89639b3145c988c775d9d997c9d356ff
80 a6f8b29a83b2305188c241f2724ea998
81 d79f9bd47505cee69627e8044f7745c2
82 5f8d8b55bc9d5b44f817ada0b9bab2f7
83 411a99ef2e2af45640f0224274979fb5
84 60706cd1eb7dffae3d7a34133c5cb67e
85 272a5d09070b5a0569fb18e144100f8b
86 0f969fd16dd186e9eb099213a82fb119
87 6c48f63ec50e26ba42d8ca074daee9a6
88 83512539cc5a2561426564590d307a58
89 c57cf49bbeaa12aaba2106278681c9cd
90 d248507181561f0aba09182c4326fb11
91 a1e153dd8bb1334bccd73890fafc5ba9
92 d7a0ba2d1241a07abf3691074cecff76
93 466034794d577c41a9716bc9eb903ee2
94 b5e2158feb4290b04a7bdfdec0a17976
95 8a16a27008d033dd6e9074b042021e60
96 ccaa12e89f6de3058b3a2baddc4eff00
97 7fdbf02f369546d0fde2b7db85752e33
98 63b286bb777298397f3acf03fc3e9deb
99 b271f751a4952f86b002b9730bd02c8b
100 cbd5cef546acc0bfa33117d7c1ae58a8
show status like '%sort%';
Variable_name Value
......
......@@ -7,7 +7,7 @@ set @save_rand_seed2= @@RAND_SEED2;
set @@RAND_SEED1=810763568, @@RAND_SEED2=600681772;
create table t1(a int);
insert into t1 select seq from seq_1_to_10000 order by rand();
insert into t1 select seq from seq_1_to_10000 order by rand(),seq;
delimiter |;
--echo #
......@@ -100,7 +100,7 @@ select id, generate_random_string(a), generate_random_string(b) from t2;
let $query= select id DIV 100 as x,
MD5(group_concat(substring(names,1,3), substring(address,1,3)
order by substring(names,1,3), substring(address,1,3)))
order by id))
FROM t3
GROUP BY x;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment