Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: speed up integration test #53426

Merged
merged 5 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 6 additions & 162 deletions tests/integrationtest/r/ddl/db_partition.result

Large diffs are not rendered by default.

101 changes: 1 addition & 100 deletions tests/integrationtest/r/ddl/partition.result
Original file line number Diff line number Diff line change
Expand Up @@ -41,106 +41,7 @@ a b
3 Hi
drop table if exists t;
create table t (a int primary key, b varchar(255), key (b));
insert into t values (0,'filler0');
insert into t values (1,'filler0');
insert into t values (2,'filler0');
insert into t values (3,'filler1');
insert into t values (4,'filler1');
insert into t values (5,'filler1');
insert into t values (6,'filler2');
insert into t values (7,'filler2');
insert into t values (8,'filler2');
insert into t values (9,'filler3');
insert into t values (10,'filler3');
insert into t values (11,'filler3');
insert into t values (12,'filler4');
insert into t values (13,'filler4');
insert into t values (14,'filler4');
insert into t values (15,'filler5');
insert into t values (16,'filler5');
insert into t values (17,'filler5');
insert into t values (18,'filler6');
insert into t values (19,'filler6');
insert into t values (20,'filler6');
insert into t values (21,'filler7');
insert into t values (22,'filler7');
insert into t values (23,'filler7');
insert into t values (24,'filler8');
insert into t values (25,'filler8');
insert into t values (26,'filler8');
insert into t values (27,'filler9');
insert into t values (28,'filler9');
insert into t values (29,'filler9');
insert into t values (30,'filler10');
insert into t values (31,'filler10');
insert into t values (32,'filler10');
insert into t values (33,'filler11');
insert into t values (34,'filler11');
insert into t values (35,'filler11');
insert into t values (36,'filler12');
insert into t values (37,'filler12');
insert into t values (38,'filler12');
insert into t values (39,'filler13');
insert into t values (40,'filler13');
insert into t values (41,'filler13');
insert into t values (42,'filler14');
insert into t values (43,'filler14');
insert into t values (44,'filler14');
insert into t values (45,'filler15');
insert into t values (46,'filler15');
insert into t values (47,'filler15');
insert into t values (48,'filler16');
insert into t values (49,'filler16');
insert into t values (50,'filler16');
insert into t values (51,'filler17');
insert into t values (52,'filler17');
insert into t values (53,'filler17');
insert into t values (54,'filler18');
insert into t values (55,'filler18');
insert into t values (56,'filler18');
insert into t values (57,'filler19');
insert into t values (58,'filler19');
insert into t values (59,'filler19');
insert into t values (60,'filler20');
insert into t values (61,'filler20');
insert into t values (62,'filler20');
insert into t values (63,'filler21');
insert into t values (64,'filler21');
insert into t values (65,'filler21');
insert into t values (66,'filler22');
insert into t values (67,'filler22');
insert into t values (68,'filler22');
insert into t values (69,'filler23');
insert into t values (70,'filler23');
insert into t values (71,'filler23');
insert into t values (72,'filler24');
insert into t values (73,'filler24');
insert into t values (74,'filler24');
insert into t values (75,'filler25');
insert into t values (76,'filler25');
insert into t values (77,'filler25');
insert into t values (78,'filler26');
insert into t values (79,'filler26');
insert into t values (80,'filler26');
insert into t values (81,'filler27');
insert into t values (82,'filler27');
insert into t values (83,'filler27');
insert into t values (84,'filler28');
insert into t values (85,'filler28');
insert into t values (86,'filler28');
insert into t values (87,'filler29');
insert into t values (88,'filler29');
insert into t values (89,'filler29');
insert into t values (90,'filler30');
insert into t values (91,'filler30');
insert into t values (92,'filler30');
insert into t values (93,'filler31');
insert into t values (94,'filler31');
insert into t values (95,'filler31');
insert into t values (96,'filler32');
insert into t values (97,'filler32');
insert into t values (98,'filler32');
insert into t values (99,'filler33');
insert into t values (0,'filler0'), (1,'filler0'), (2,'filler0'), (3,'filler1'), (4,'filler1'), (5,'filler1'), (6,'filler2'), (7,'filler2'), (8,'filler2'), (9,'filler3'), (10,'filler3'), (11,'filler3'), (12,'filler4'), (13,'filler4'), (14,'filler4'), (15,'filler5'), (16,'filler5'), (17,'filler5'), (18,'filler6'), (19,'filler6'), (20,'filler6'), (21,'filler7'), (22,'filler7'), (23,'filler7'), (24,'filler8'), (25,'filler8'), (26,'filler8'), (27,'filler9'), (28,'filler9'), (29,'filler9'), (30,'filler10'), (31,'filler10'), (32,'filler10'), (33,'filler11'), (34,'filler11'), (35,'filler11'), (36,'filler12'), (37,'filler12'), (38,'filler12'), (39,'filler13'), (40,'filler13'), (41,'filler13'), (42,'filler14'), (43,'filler14'), (44,'filler14'), (45,'filler15'), (46,'filler15'), (47,'filler15'), (48,'filler16'), (49,'filler16'), (50,'filler16'), (51,'filler17'), (52,'filler17'), (53,'filler17'), (54,'filler18'), (55,'filler18'), (56,'filler18'), (57,'filler19'), (58,'filler19'), (59,'filler19'), (60,'filler20'), (61,'filler20'), (62,'filler20'), (63,'filler21'), (64,'filler21'), (65,'filler21'), (66,'filler22'), (67,'filler22'), (68,'filler22'), (69,'filler23'), (70,'filler23'), (71,'filler23'), (72,'filler24'), (73,'filler24'), (74,'filler24'), (75,'filler25'), (76,'filler25'), (77,'filler25'), (78,'filler26'), (79,'filler26'), (80,'filler26'), (81,'filler27'), (82,'filler27'), (83,'filler27'), (84,'filler28'), (85,'filler28'), (86,'filler28'), (87,'filler29'), (88,'filler29'), (89,'filler29'), (90,'filler30'), (91,'filler30'), (92,'filler30'), (93,'filler31'), (94,'filler31'), (95,'filler31'), (96,'filler32'), (97,'filler32'), (98,'filler32'), (99,'filler33');
alter table t partition by range (a) (partition p0 values less than (1000000), partition p1 values less than (2000000), partition pMax values less than (maxvalue));
show warnings;
Level Code Message
Expand Down
3 changes: 1 addition & 2 deletions tests/integrationtest/r/executor/aggregate.result
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ a MIN(b) MAX(b)
1 11 11
3 NULL NULL
drop table if exists t;
create table t (a int, b int, c int);
alter table t add index idx(a, b, c);
create table t (a int, b int, c int, index idx(a, b, c));
select count(a) from t group by a;
count(a)
select count(a) from t;
Expand Down
202 changes: 1 addition & 201 deletions tests/integrationtest/r/executor/executor.result
Original file line number Diff line number Diff line change
Expand Up @@ -1442,207 +1442,7 @@ select * from test having (select 1, 1);
Error 1146 (42S02): Table 'executor__executor.test' doesn't exist
drop table if exists t;
create table t (c1 int primary key, c2 int, key c (c2));
insert t values(0, 0);
insert t values(1, 1);
insert t values(2, 2);
insert t values(3, 3);
insert t values(4, 4);
insert t values(5, 5);
insert t values(6, 6);
insert t values(7, 7);
insert t values(8, 8);
insert t values(9, 9);
insert t values(10, 10);
insert t values(11, 11);
insert t values(12, 12);
insert t values(13, 13);
insert t values(14, 14);
insert t values(15, 15);
insert t values(16, 16);
insert t values(17, 17);
insert t values(18, 18);
insert t values(19, 19);
insert t values(20, 20);
insert t values(21, 21);
insert t values(22, 22);
insert t values(23, 23);
insert t values(24, 24);
insert t values(25, 25);
insert t values(26, 26);
insert t values(27, 27);
insert t values(28, 28);
insert t values(29, 29);
insert t values(30, 30);
insert t values(31, 31);
insert t values(32, 32);
insert t values(33, 33);
insert t values(34, 34);
insert t values(35, 35);
insert t values(36, 36);
insert t values(37, 37);
insert t values(38, 38);
insert t values(39, 39);
insert t values(40, 40);
insert t values(41, 41);
insert t values(42, 42);
insert t values(43, 43);
insert t values(44, 44);
insert t values(45, 45);
insert t values(46, 46);
insert t values(47, 47);
insert t values(48, 48);
insert t values(49, 49);
insert t values(50, 50);
insert t values(51, 51);
insert t values(52, 52);
insert t values(53, 53);
insert t values(54, 54);
insert t values(55, 55);
insert t values(56, 56);
insert t values(57, 57);
insert t values(58, 58);
insert t values(59, 59);
insert t values(60, 60);
insert t values(61, 61);
insert t values(62, 62);
insert t values(63, 63);
insert t values(64, 64);
insert t values(65, 65);
insert t values(66, 66);
insert t values(67, 67);
insert t values(68, 68);
insert t values(69, 69);
insert t values(70, 70);
insert t values(71, 71);
insert t values(72, 72);
insert t values(73, 73);
insert t values(74, 74);
insert t values(75, 75);
insert t values(76, 76);
insert t values(77, 77);
insert t values(78, 78);
insert t values(79, 79);
insert t values(80, 80);
insert t values(81, 81);
insert t values(82, 82);
insert t values(83, 83);
insert t values(84, 84);
insert t values(85, 85);
insert t values(86, 86);
insert t values(87, 87);
insert t values(88, 88);
insert t values(89, 89);
insert t values(90, 90);
insert t values(91, 91);
insert t values(92, 92);
insert t values(93, 93);
insert t values(94, 94);
insert t values(95, 95);
insert t values(96, 96);
insert t values(97, 97);
insert t values(98, 98);
insert t values(99, 99);
insert t values(100, 100);
insert t values(101, 101);
insert t values(102, 102);
insert t values(103, 103);
insert t values(104, 104);
insert t values(105, 105);
insert t values(106, 106);
insert t values(107, 107);
insert t values(108, 108);
insert t values(109, 109);
insert t values(110, 110);
insert t values(111, 111);
insert t values(112, 112);
insert t values(113, 113);
insert t values(114, 114);
insert t values(115, 115);
insert t values(116, 116);
insert t values(117, 117);
insert t values(118, 118);
insert t values(119, 119);
insert t values(120, 120);
insert t values(121, 121);
insert t values(122, 122);
insert t values(123, 123);
insert t values(124, 124);
insert t values(125, 125);
insert t values(126, 126);
insert t values(127, 127);
insert t values(128, 128);
insert t values(129, 129);
insert t values(130, 130);
insert t values(131, 131);
insert t values(132, 132);
insert t values(133, 133);
insert t values(134, 134);
insert t values(135, 135);
insert t values(136, 136);
insert t values(137, 137);
insert t values(138, 138);
insert t values(139, 139);
insert t values(140, 140);
insert t values(141, 141);
insert t values(142, 142);
insert t values(143, 143);
insert t values(144, 144);
insert t values(145, 145);
insert t values(146, 146);
insert t values(147, 147);
insert t values(148, 148);
insert t values(149, 149);
insert t values(150, 150);
insert t values(151, 151);
insert t values(152, 152);
insert t values(153, 153);
insert t values(154, 154);
insert t values(155, 155);
insert t values(156, 156);
insert t values(157, 157);
insert t values(158, 158);
insert t values(159, 159);
insert t values(160, 160);
insert t values(161, 161);
insert t values(162, 162);
insert t values(163, 163);
insert t values(164, 164);
insert t values(165, 165);
insert t values(166, 166);
insert t values(167, 167);
insert t values(168, 168);
insert t values(169, 169);
insert t values(170, 170);
insert t values(171, 171);
insert t values(172, 172);
insert t values(173, 173);
insert t values(174, 174);
insert t values(175, 175);
insert t values(176, 176);
insert t values(177, 177);
insert t values(178, 178);
insert t values(179, 179);
insert t values(180, 180);
insert t values(181, 181);
insert t values(182, 182);
insert t values(183, 183);
insert t values(184, 184);
insert t values(185, 185);
insert t values(186, 186);
insert t values(187, 187);
insert t values(188, 188);
insert t values(189, 189);
insert t values(190, 190);
insert t values(191, 191);
insert t values(192, 192);
insert t values(193, 193);
insert t values(194, 194);
insert t values(195, 195);
insert t values(196, 196);
insert t values(197, 197);
insert t values(198, 198);
insert t values(199, 199);
insert t values(200, 200);
insert t values(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (17, 17), (18, 18), (19, 19), (20, 20), (21, 21), (22, 22), (23, 23), (24, 24), (25, 25), (26, 26), (27, 27), (28, 28), (29, 29), (30, 30), (31, 31), (32, 32), (33, 33), (34, 34), (35, 35), (36, 36), (37, 37), (38, 38), (39, 39), (40, 40), (41, 41), (42, 42), (43, 43), (44, 44), (45, 45), (46, 46), (47, 47), (48, 48), (49, 49), (50, 50), (51, 51), (52, 52), (53, 53), (54, 54), (55, 55), (56, 56), (57, 57), (58, 58), (59, 59), (60, 60), (61, 61), (62, 62), (63, 63), (64, 64), (65, 65), (66, 66), (67, 67), (68, 68), (69, 69), (70, 70), (71, 71), (72, 72), (73, 73), (74, 74), (75, 75), (76, 76), (77, 77), (78, 78), (79, 79), (80, 80), (81, 81), (82, 82), (83, 83), (84, 84), (85, 85), (86, 86), (87, 87), (88, 88), (89, 89), (90, 90), (91, 91), (92, 92), (93, 93), (94, 94), (95, 95), (96, 96), (97, 97), (98, 98), (99, 99), (100, 100), (101, 101), (102, 102), (103, 103), (104, 104), (105, 105), (106, 106), (107, 107), (108, 108), (109, 109), (110, 110), (111, 111), (112, 112), (113, 113), (114, 114), (115, 115), (116, 116), (117, 117), (118, 118), (119, 119), (120, 120), (121, 121), (122, 122), (123, 123), (124, 124), (125, 125), (126, 126), (127, 127), (128, 128), (129, 129), (130, 130), (131, 131), (132, 132), (133, 133), (134, 134), (135, 135), (136, 136), (137, 137), (138, 138), (139, 139), (140, 140), (141, 141), (142, 142), (143, 143), (144, 144), (145, 145), (146, 146), (147, 147), (148, 148), (149, 149), (150, 150), (151, 151), (152, 152), (153, 153), (154, 154), (155, 155), (156, 156), (157, 157), (158, 158), (159, 159), (160, 160), (161, 161), (162, 162), (163, 163), (164, 164), (165, 165), (166, 166), (167, 167), (168, 168), (169, 169), (170, 170), (171, 171), (172, 172), (173, 173), (174, 174), (175, 175), (176, 176), (177, 177), (178, 178), (179, 179), (180, 180), (181, 181), (182, 182), (183, 183), (184, 184), (185, 185), (186, 186), (187, 187), (188, 188), (189, 189), (190, 190), (191, 191), (192, 192), (193, 193), (194, 194), (195, 195), (196, 196), (197, 197), (198, 198), (199, 199), (200, 200);
select c2 from t where c1 in ('7', '10', '112', '111', '98', '106', '100', '9', '18', '17') order by c2;
c2
7
Expand Down
3 changes: 1 addition & 2 deletions tests/integrationtest/r/executor/jointest/hash_join.result
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ a b a
2 NULL NULL
drop table if exists t,s;
create table t(a int primary key auto_increment, b time);
create table s(a int, b time);
alter table s add index idx(a,b);
create table s(a int, b time, index idx(a, b));
set @@tidb_index_join_batch_size=4;
set @@tidb_init_chunk_size=1;
set @@tidb_max_chunk_size=32;
Expand Down
Loading