Skip to content

Commit b12962f

Browse files
authored
chore: Add test for dropping index when indexing (#283)
Signed-off-by: xieydd <xieydd@gmail.com>
1 parent 2b95a23 commit b12962f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
statement ok
2+
SET search_path TO pg_temp, vectors;
3+
4+
statement ok
5+
CREATE TABLE t (val vector(10));
6+
7+
statement ok
8+
INSERT INTO t (val) SELECT ARRAY[random(), random(), random(), random(), random(), random(), random(), random(), random(), random()]::real[] FROM generate_series(1, 100000);
9+
10+
statement ok
11+
CREATE INDEX ON t USING vectors (val vector_l2_ops)
12+
WITH (options = "[indexing.hnsw]");
13+
14+
statement ok
15+
DROP INDEX t_val_idx;
16+
17+
statement ok
18+
DROP TABLE t;
19+

0 commit comments

Comments
 (0)