-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: cutecutecat <[email protected]>
- Loading branch information
1 parent
2a748f3
commit 1b20043
Showing
7 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
query I | ||
SELECT idx_indexing FROM pg_vector_index_stat WHERE indexname = 'i'; | ||
---- | ||
f | ||
|
||
query I | ||
SELECT idx_growing FROM pg_vector_index_stat WHERE indexname = 'i'; | ||
---- | ||
{} | ||
|
||
query I | ||
SELECT idx_sealed FROM pg_vector_index_stat WHERE indexname = 'i'; | ||
---- | ||
{1000} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
statement ok | ||
CREATE TABLE t (val vector(3)); | ||
|
||
statement ok | ||
INSERT INTO t (val) SELECT ARRAY[random(), random(), random()]::real[] FROM generate_series(1, 1000); | ||
|
||
statement ok | ||
CREATE INDEX i ON t USING vectors (val vector_l2_ops) | ||
WITH (options = "[indexing.hnsw]"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Test the background threads `optimizing.indexing` and `optimizing.sealing` working properly | ||
sqllogictest -u runner -d runner $(dirname $0)/create.slt | ||
sleep 240 | ||
sqllogictest -u runner -d runner $(dirname $0)/check.slt |