1
0
mirror of https://github.com/tensorchord/pgvecto.rs.git synced 2025-08-01 06:46:52 +03:00
Files
pgvecto.rs/tests/sqllogictest/error.slt
Usamoi 7b9ae2eef0 refactor: define detailed error types (#356)
* refactor: define detailed error types

Signed-off-by: usamoi <usamoi@outlook.com>

* do not check version in _vectors_main

Signed-off-by: usamoi <usamoi@outlook.com>

* rename NORMAL to STARTED

Signed-off-by: usamoi <usamoi@outlook.com>

* fix MacOS and FreeBSD implementation

Signed-off-by: usamoi <usamoi@outlook.com>

* fix 512KB memory leak for each session

Signed-off-by: usamoi <usamoi@outlook.com>

* remove skip on delete_threshold for fixing bincode

Signed-off-by: usamoi <usamoi@outlook.com>

* add WorkerOperations and InstanceViewOperations for name conflicts

Signed-off-by: usamoi <usamoi@outlook.com>

---------

Signed-off-by: usamoi <usamoi@outlook.com>
2024-02-19 09:36:16 +00:00

15 lines
439 B
Plaintext

statement ok
SET search_path TO pg_temp, vectors;
statement ok
CREATE TABLE t (val vector(3));
statement ok
CREATE INDEX ON t USING vectors (val vector_l2_ops);
statement error The dimension of a vector does not matched that in a vector index column.
INSERT INTO t (val) VALUES ('[0, 1, 2, 3]');
statement error The dimension of a vector does not matched that in a vector index column.
SELECT * FROM t ORDER BY val <-> '[0, 1, 2, 3]';