Skip to content

Commit d192c40

Browse files
authored
chore: update install script (#492)
* chore: update install script Signed-off-by: cutecutecat <junyuchen@tensorchord.ai> * fix: remove schema prefix Signed-off-by: cutecutecat <junyuchen@tensorchord.ai> --------- Signed-off-by: cutecutecat <junyuchen@tensorchord.ai>
1 parent 6626f0b commit d192c40

16 files changed

+1044
-504
lines changed

sql/install/vectors--0.3.0.sql

Lines changed: 698 additions & 404 deletions
Large diffs are not rendered by default.

sql/upgrade/vectors--0.2.1--0.3.0.sql

Lines changed: 313 additions & 79 deletions
Large diffs are not rendered by default.

tests/sqllogictest/bvector_binary.slt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ SELECT SUM(((t.val = t2.val) OR (t.val IS NULL and t2.val IS NULL))::int) FROM t
3131
4000
3232

3333
statement ok
34-
DROP TABLE t;
35-
36-
statement ok
37-
DROP TABLE t2;
34+
DROP TABLE t, t2;

tests/sqllogictest/bvector_storage.slt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ ALTER TABLE t ALTER COLUMN val SET STORAGE EXTENDED;
1818

1919
statement ok
2020
ALTER TABLE t ALTER COLUMN val SET STORAGE MAIN;
21+
22+
statement ok
23+
DROP TABLE t;

tests/sqllogictest/error.slt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ INSERT INTO t (val) VALUES ('[0, 1, 2, 3]');
1212

1313
statement error The dimension of a vector does not matched that in a vector index column.
1414
SELECT * FROM t ORDER BY val <-> '[0, 1, 2, 3]';
15+
16+
statement ok
17+
DROP TABLE t;

tests/sqllogictest/issue_427.slt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ CREATE INDEX ON t USING vectors (val vector_l2_ops);
1414

1515
statement ok
1616
SELECT val FROM t ORDER BY val <-> (SELECT val FROM t LIMIT 1) limit 10;
17+
18+
statement ok
19+
DROP TABLE t;

tests/sqllogictest/partition.slt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ query I
4848
SELECT COUNT(1) FROM
4949
(SELECT 1 FROM items WHERE (category_id = 1) ORDER BY val <#> '[0.5,0.5,0.5]' limit 10) t2;
5050
----
51-
10
51+
10
52+
53+
statement ok
54+
DROP TABLE id_789, id_456, id_123, items;

tests/sqllogictest/svector_binary.slt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ SELECT SUM(((t.val = t2.val) OR (t.val IS NULL and t2.val IS NULL))::int) FROM t
3131
4000
3232

3333
statement ok
34-
DROP TABLE t;
35-
36-
statement ok
37-
DROP TABLE t2;
34+
DROP TABLE t, t2;

tests/sqllogictest/svector_storage.slt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ ALTER TABLE t ALTER COLUMN val SET STORAGE EXTENDED;
1818

1919
statement ok
2020
ALTER TABLE t ALTER COLUMN val SET STORAGE MAIN;
21+
22+
statement ok
23+
DROP TABLE t;

tests/sqllogictest/vecf16_binary.slt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ SELECT SUM(((t.val = t2.val) OR (t.val IS NULL and t2.val IS NULL))::int) FROM t
3131
4000
3232

3333
statement ok
34-
DROP TABLE t;
35-
36-
statement ok
37-
DROP TABLE t2;
34+
DROP TABLE t, t2;

0 commit comments

Comments
 (0)