Skip to content

Commit ddbc98a

Browse files
committed
update bvt
1 parent 5433929 commit ddbc98a

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

pkg/sql/colexec/table_clone/table_clone.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"bytes"
1919
"context"
2020
"fmt"
21+
2122
"github.com/matrixorigin/matrixone/pkg/common/moerr"
2223
"github.com/matrixorigin/matrixone/pkg/common/mpool"
2324
"github.com/matrixorigin/matrixone/pkg/common/reuse"

test/distributed/cases/snapshot/clone/clone_in_alter_table.result

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,23 @@ a b_2 c d e f
116116
890 888.0 888 888 888 null
117117
8890 8888.0 8888 8888 8888 null
118118
88890 88888.0 88888 88888 88888 null
119+
set experimental_fulltext_index=1;
120+
set experimental_ivf_index = 1;
121+
set experimental_hnsw_index = 1;
122+
create table t2 (a bigint primary key auto_increment, b vecf32(3), c vecf32(3), d text, index ivfIdx using ivfflat(b) lists=5 op_type "vector_l2_ops", index hnswIdx using hnsw(c) op_type 'vector_l2_ops', fulltext(d));
123+
insert into t2(b,c,d) select CONCAT('[',FLOOR(RAND() * 9),',', FLOOR(RAND() * 9), ',', FLOOR(RAND() * 9),']'), CONCAT('[',FLOOR(RAND() * 9),',', FLOOR(RAND() * 9), ',', FLOOR(RAND() * 9),']'), * from generate_series(1, 1000)g;
124+
insert into t2(b,c,d) values("[1,1,1]","[1,1,1]","111"),("[9,9,9]","[9,9,9]","999");
125+
alter table t2 add column f int;
126+
select floor(max(l2_distance(b, "[1,1,1]"))) from t2;
127+
floor(max(l2_distance(b, [1,1,1])))
128+
13.0
129+
select floor(max(l2_distance(c, "[1,1,1]"))) from t2;
130+
floor(max(l2_distance(c, [1,1,1])))
131+
13.0
132+
select a,d from t2 where match(d) against('234' in boolean mode);
133+
a d
134+
234 234
135+
set experimental_fulltext_index=0;
136+
set experimental_ivf_index = 0;
137+
set experimental_hnsw_index = 0;
119138
drop database test;

test/distributed/cases/snapshot/clone/clone_in_alter_table.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,20 @@ alter table t1 add column f int;
7979
update t1 set a = a + 1 where c in (8,88,888,8888,88888);
8080
select * from t1 where c in (8,88,888,8888,88888);
8181

82+
set experimental_fulltext_index=1;
83+
set experimental_ivf_index = 1;
84+
set experimental_hnsw_index = 1;
85+
create table t2 (a bigint primary key auto_increment, b vecf32(3), c vecf32(3), d text, index ivfIdx using ivfflat(b) lists=5 op_type "vector_l2_ops", index hnswIdx using hnsw(c) op_type 'vector_l2_ops', fulltext(d));
86+
insert into t2(b,c,d) select CONCAT('[',FLOOR(RAND() * 9),',', FLOOR(RAND() * 9), ',', FLOOR(RAND() * 9),']'), CONCAT('[',FLOOR(RAND() * 9),',', FLOOR(RAND() * 9), ',', FLOOR(RAND() * 9),']'), * from generate_series(1, 1000)g;
87+
insert into t2(b,c,d) values("[1,1,1]","[1,1,1]","111"),("[9,9,9]","[9,9,9]","999");
88+
89+
alter table t2 add column f int;
90+
select floor(max(l2_distance(b, "[1,1,1]"))) from t2;
91+
select floor(max(l2_distance(c, "[1,1,1]"))) from t2;
92+
select a,d from t2 where match(d) against('234' in boolean mode);
93+
94+
set experimental_fulltext_index=0;
95+
set experimental_ivf_index = 0;
96+
set experimental_hnsw_index = 0;
97+
8298
drop database test;

0 commit comments

Comments
 (0)