Skip to content

Commit

Permalink
fix partition test
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <kemingyang@tensorchord.ai>
  • Loading branch information
kemingy committed Nov 7, 2024
1 parent dee6ec0 commit 9725a28
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions tests/logic/partition.slt
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ SELECT
FROM generate_series(1, 1000);

statement ok
CREATE INDEX ON ONLY items USING rabbithole (val vector_l2_ops);

statement ok
CREATE INDEX CONCURRENTLY ON id_123 USING rabbithole (val vector_l2_ops);

statement ok
CREATE INDEX CONCURRENTLY ON id_456 USING rabbithole (val vector_l2_ops);

statement ok
CREATE INDEX CONCURRENTLY ON id_789 USING rabbithole (val vector_l2_ops);
CREATE INDEX ON items USING rabbithole (val rabbithole.vector_l2_ops);

query I
SELECT COUNT(1) FROM (SELECT 1 FROM items ORDER BY val <-> '[0.5,0.5,0.5]' limit 10) t2;
Expand All @@ -48,7 +39,7 @@ SELECT COUNT(1) FROM (SELECT 1 FROM items ORDER BY val <=> '[0.5,0.5,0.5]' limit

# partial index
statement ok
CREATE INDEX ON ONLY items USING rabbithole (val vector_dot_ops) WHERE (category_id = 1);
CREATE INDEX ON items USING rabbithole (val rabbithole.vector_dot_ops) WHERE (category_id = 1);

query I
SELECT COUNT(1) FROM
Expand Down

0 comments on commit 9725a28

Please sign in to comment.