diff --git a/test/expected/ivfflat_bit.out b/test/expected/ivfflat_bit.out index 2457e6f..de4235d 100644 --- a/test/expected/ivfflat_bit.out +++ b/test/expected/ivfflat_bit.out @@ -35,6 +35,17 @@ NOTICE: ivfflat index created with little data DETAIL: This will cause low recall. HINT: Drop the index until the table has more data. DROP TABLE t; +-- dimensions +CREATE TABLE t (val bit(64000)); +CREATE INDEX ON t USING ivfflat (val bit_hamming_ops); +NOTICE: ivfflat index created with little data +DETAIL: This will cause low recall. +HINT: Drop the index until the table has more data. +DROP TABLE t; +CREATE TABLE t (val bit(64001)); +CREATE INDEX ON t USING ivfflat (val bit_hamming_ops); +ERROR: column cannot have more than 64000 dimensions for ivfflat index +DROP TABLE t; -- memory CREATE TABLE t (val bit(64000)); CREATE INDEX ON t USING ivfflat (val bit_hamming_ops) WITH (lists = 32768); diff --git a/test/sql/ivfflat_bit.sql b/test/sql/ivfflat_bit.sql index f76d8a4..5aa74a1 100644 --- a/test/sql/ivfflat_bit.sql +++ b/test/sql/ivfflat_bit.sql @@ -22,6 +22,16 @@ CREATE INDEX ON t USING ivfflat ((val::bit(64001)) bit_hamming_ops) WITH (lists CREATE INDEX ON t USING ivfflat ((val::bit(2)) bit_hamming_ops) WITH (lists = 5); DROP TABLE t; +-- dimensions + +CREATE TABLE t (val bit(64000)); +CREATE INDEX ON t USING ivfflat (val bit_hamming_ops); +DROP TABLE t; + +CREATE TABLE t (val bit(64001)); +CREATE INDEX ON t USING ivfflat (val bit_hamming_ops); +DROP TABLE t; + -- memory CREATE TABLE t (val bit(64000));