Skip to content

Commit a0d1bea

Browse files
committed
fix: tests (#437)
Signed-off-by: usamoi <usamoi@outlook.com>
1 parent 90140c4 commit a0d1bea

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,8 @@ jobs:
10091009
sudo -iu postgres createuser -s -r $(whoami)
10101010
sudo -iu postgres createdb -O $(whoami) $(whoami)
10111011
if [ "${{ matrix.version }}" -ge "18" ]; then
1012-
sudo -iu postgres psql -c 'ALTER SYSTEM SET io_method = io_uring'
1012+
# valgrind works not well
1013+
sudo -iu postgres psql -c 'ALTER SYSTEM SET io_method = worker'
10131014
fi
10141015
sudo -iu postgres psql -c 'ALTER SYSTEM SET max_worker_processes = 1024'
10151016
sudo -iu postgres psql -c 'ALTER SYSTEM SET shared_preload_libraries = "vchord"'

tests/vchordg/index_vector_rabitq.slt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ statement ok
1818
CREATE INDEX ti ON t USING vchordg ((quantize_to_rabitq8(val)::rabitq8(64)) rabitq8_l2_ops);
1919

2020
query I
21-
SELECT index FROM t ORDER BY quantize_to_rabitq8(val) <-> quantize_to_rabitq8(array_cat(ARRAY[0.6, 0.8], ARRAY(SELECT 0.0 FROM generate_series(1, 62)))::vector) LIMIT 10;
21+
SELECT index FROM t ORDER BY quantize_to_rabitq8(val) <-> quantize_to_rabitq8(array_cat(ARRAY[0.6, 0.8], ARRAY(SELECT 0.0 FROM generate_series(1, 62)))::vector) LIMIT 9;
2222
----
2323
1608
2424
155
@@ -29,7 +29,6 @@ SELECT index FROM t ORDER BY quantize_to_rabitq8(val) <-> quantize_to_rabitq8(ar
2929
60
3030
218
3131
1080
32-
1568
3332

3433
statement ok
3534
DROP INDEX ti;
@@ -58,7 +57,7 @@ statement ok
5857
CREATE INDEX ti ON t USING vchordg ((quantize_to_rabitq8(val)::rabitq8(64)) rabitq8_cosine_ops);
5958

6059
query I
61-
SELECT index FROM t ORDER BY quantize_to_rabitq8(val) <=> quantize_to_rabitq8(array_cat(ARRAY[0.6, 0.8], ARRAY(SELECT 0.0 FROM generate_series(1, 62)))::vector) LIMIT 10;
60+
SELECT index FROM t ORDER BY quantize_to_rabitq8(val) <=> quantize_to_rabitq8(array_cat(ARRAY[0.6, 0.8], ARRAY(SELECT 0.0 FROM generate_series(1, 62)))::vector) LIMIT 9;
6261
----
6362
1608
6463
155
@@ -69,7 +68,6 @@ SELECT index FROM t ORDER BY quantize_to_rabitq8(val) <=> quantize_to_rabitq8(ar
6968
60
7069
218
7170
1080
72-
1568
7371

7472
statement ok
7573
DROP INDEX ti;

0 commit comments

Comments
 (0)