Skip to content

Commit 823a3a2

Browse files
committed
MDEV-36205 coverage test
1 parent c06a25e commit 823a3a2

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# MDEV-36205 subdist optimization
3+
#
4+
create table t1 (
5+
id int unsigned auto_increment primary key,
6+
v vector(500) not null,
7+
vector index(v)
8+
);
9+
set rand_seed1=1234567890, rand_seed2=3;
10+
insert t1 (v) select vec_fromtext(json_arrayagg(rand() order by rand())) from seq_1_to_500 veclen, seq_1_to_200 numvecs group by numvecs.seq;
11+
drop table t1;
12+
# End of 12.1 tests
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
source include/have_sequence.inc;
2+
3+
--echo #
4+
--echo # MDEV-36205 subdist optimization
5+
--echo #
6+
# for now it'll just provide code coverage
7+
# after MDEV-34805 it'll show the stats too
8+
create table t1 (
9+
id int unsigned auto_increment primary key,
10+
v vector(500) not null,
11+
vector index(v)
12+
);
13+
14+
set rand_seed1=1234567890, rand_seed2=3;
15+
insert t1 (v) select vec_fromtext(json_arrayagg(rand() order by rand())) from seq_1_to_500 veclen, seq_1_to_200 numvecs group by numvecs.seq;
16+
drop table t1;
17+
18+
--echo # End of 12.1 tests

0 commit comments

Comments
 (0)