mirror of
https://github.com/hanzoai/sql-vector.git
synced 2026-10-01 00:37:19 +00:00
Added test for array to halfvec cast [skip ci]
(cherry picked from commit 3e523434f487882964d3e2c91c772f830ef8f060)
This commit is contained in:
@@ -76,6 +76,7 @@ SELECT '{{1}}'::real[]::sparsevec;
|
||||
|
||||
SELECT array_agg(n)::vector FROM generate_series(1, 16001) n;
|
||||
SELECT array_to_vector(array_agg(n), 16001, false) FROM generate_series(1, 16001) n;
|
||||
SELECT array_agg(n)::halfvec FROM generate_series(1, 16001) n;
|
||||
|
||||
-- ensure no error
|
||||
SELECT ARRAY[1,2,3] = ARRAY[1,2,3];
|
||||
|
||||
Reference in New Issue
Block a user