Raise error for varbit

This commit is contained in:
Andrew Kane
2024-04-03 21:30:43 -07:00
parent 49bd62da70
commit 91c9bf4626
3 changed files with 18 additions and 3 deletions
+6
View File
@@ -10,3 +10,9 @@ SELECT * FROM t ORDER BY val <~> B'111';
SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <~> (SELECT NULL::bit)) t2;
DROP TABLE t;
-- TODO move
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);
DROP TABLE t;