mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-15 00:56:54 +08:00
Added test for bit dimensions [skip ci]
This commit is contained in:
@@ -24,4 +24,6 @@ CREATE TABLE t (val varbit(3));
|
|||||||
CREATE INDEX ON t USING hnsw (val bit_hamming_ops);
|
CREATE INDEX ON t USING hnsw (val bit_hamming_ops);
|
||||||
ERROR: type not supported for hnsw index
|
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(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;
|
DROP TABLE t;
|
||||||
|
|||||||
@@ -15,4 +15,5 @@ DROP TABLE t;
|
|||||||
CREATE TABLE t (val varbit(3));
|
CREATE TABLE t (val varbit(3));
|
||||||
CREATE INDEX ON t USING hnsw (val bit_hamming_ops);
|
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(3)) bit_hamming_ops);
|
||||||
|
CREATE INDEX ON t USING hnsw ((val::bit(64001)) bit_hamming_ops);
|
||||||
DROP TABLE t;
|
DROP TABLE t;
|
||||||
|
|||||||
Reference in New Issue
Block a user