Added tests for index dimensions [skip ci]

This commit is contained in:
Andrew Kane
2026-07-01 12:15:27 -07:00
parent b383e4d191
commit a76a18d526
8 changed files with 78 additions and 0 deletions

View File

@@ -199,3 +199,11 @@ ERROR: 0 is outside the valid range for parameter "hnsw.scan_mem_multiplier" (1
SET hnsw.scan_mem_multiplier = 1001;
ERROR: 1001 is outside the valid range for parameter "hnsw.scan_mem_multiplier" (1 .. 1000)
DROP TABLE t;
-- dimensions
CREATE TABLE t (val vector(2000));
CREATE INDEX ON t USING hnsw (val vector_l2_ops);
DROP TABLE t;
CREATE TABLE t (val vector(2001));
CREATE INDEX ON t USING hnsw (val vector_l2_ops);
ERROR: column cannot have more than 2000 dimensions for hnsw index
DROP TABLE t;