From 05ce20990c218687d64085e952bac5a4bc26b235 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 9 Apr 2024 14:31:33 -0700 Subject: [PATCH] Added test for bit dimensions [skip ci] --- test/expected/hnsw_bit_hamming.out | 2 ++ test/sql/hnsw_bit_hamming.sql | 1 + 2 files changed, 3 insertions(+) diff --git a/test/expected/hnsw_bit_hamming.out b/test/expected/hnsw_bit_hamming.out index bda949e..cd0fd96 100644 --- a/test/expected/hnsw_bit_hamming.out +++ b/test/expected/hnsw_bit_hamming.out @@ -24,4 +24,6 @@ CREATE TABLE t (val varbit(3)); CREATE INDEX ON t USING hnsw (val bit_hamming_ops); ERROR: type not supported for hnsw index 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; diff --git a/test/sql/hnsw_bit_hamming.sql b/test/sql/hnsw_bit_hamming.sql index 5319461..c517df0 100644 --- a/test/sql/hnsw_bit_hamming.sql +++ b/test/sql/hnsw_bit_hamming.sql @@ -15,4 +15,5 @@ DROP TABLE t; CREATE TABLE t (val varbit(3)); 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;