From 38f42820be94efc092ca53f44bdfe43f42614e06 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 27 Oct 2024 20:05:58 -0700 Subject: [PATCH] Added test for hnsw.scan_mem_multiplier [skip ci] --- test/expected/hnsw_vector.out | 8 ++++++++ test/sql/hnsw_vector.sql | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/test/expected/hnsw_vector.out b/test/expected/hnsw_vector.out index 8de76b6..86b27f5 100644 --- a/test/expected/hnsw_vector.out +++ b/test/expected/hnsw_vector.out @@ -182,4 +182,12 @@ SHOW hnsw.max_scan_tuples; SET hnsw.max_scan_tuples = 0; ERROR: 0 is outside the valid range for parameter "hnsw.max_scan_tuples" (1 .. 2147483647) +SHOW hnsw.scan_mem_multiplier; + hnsw.scan_mem_multiplier +-------------------------- + 2 +(1 row) + +SET hnsw.scan_mem_multiplier = 0; +ERROR: 0 is outside the valid range for parameter "hnsw.scan_mem_multiplier" (1 .. 1000) DROP TABLE t; diff --git a/test/sql/hnsw_vector.sql b/test/sql/hnsw_vector.sql index e55d2e5..868e467 100644 --- a/test/sql/hnsw_vector.sql +++ b/test/sql/hnsw_vector.sql @@ -106,4 +106,8 @@ SHOW hnsw.max_scan_tuples; SET hnsw.max_scan_tuples = 0; +SHOW hnsw.scan_mem_multiplier; + +SET hnsw.scan_mem_multiplier = 0; + DROP TABLE t;