File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments