diff --git a/test/expected/hnsw_bit.out b/test/expected/hnsw_bit.out index 047954a..6dd09b7 100644 --- a/test/expected/hnsw_bit.out +++ b/test/expected/hnsw_bit.out @@ -49,3 +49,11 @@ CREATE INDEX ON t USING hnsw ((val::bit(3)) bit_hamming_ops); CREATE INDEX ON t USING hnsw ((val::bit(64001)) bit_hamming_ops); ERROR: column cannot have more than 64000 dimensions for hnsw index DROP TABLE t; +-- dimensions +CREATE TABLE t (val bit(64000)); +CREATE INDEX ON t USING hnsw (val bit_hamming_ops); +DROP TABLE t; +CREATE TABLE t (val bit(64001)); +CREATE INDEX ON t USING hnsw (val bit_hamming_ops); +ERROR: column cannot have more than 64000 dimensions for hnsw index +DROP TABLE t; diff --git a/test/sql/hnsw_bit.sql b/test/sql/hnsw_bit.sql index 5a7def7..eaa171a 100644 --- a/test/sql/hnsw_bit.sql +++ b/test/sql/hnsw_bit.sql @@ -33,3 +33,13 @@ CREATE INDEX ON t USING hnsw (val bit_hamming_ops); CREATE INDEX ON t USING hnsw ((val::bit(3)) bit_hamming_ops); CREATE INDEX ON t USING hnsw ((val::bit(64001)) bit_hamming_ops); DROP TABLE t; + +-- dimensions + +CREATE TABLE t (val bit(64000)); +CREATE INDEX ON t USING hnsw (val bit_hamming_ops); +DROP TABLE t; + +CREATE TABLE t (val bit(64001)); +CREATE INDEX ON t USING hnsw (val bit_hamming_ops); +DROP TABLE t;