mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-06 09:18:52 +00:00
Added more tests for sparsevec casts [skip ci]
This commit is contained in:
1 parent
5436e9d31b
commit
7252374fa8
2 files changed
+28
No files matched your search
@@ -66,6 +66,12 @@ SELECT '{-Infinity}'::real[]::sparsevec;
|
||||
SELECT '{}'::real[]::sparsevec;
|
||||
SELECT '{{1}}'::real[]::sparsevec;
|
||||
|
||||
SELECT '{1,0,2,0,3,0}'::double precision[]::sparsevec;
|
||||
SELECT '{1,0,2,0,3,0}'::double precision[]::sparsevec(6);
|
||||
SELECT '{1,0,2,0,3,0}'::double precision[]::sparsevec(5);
|
||||
SELECT '{4e38,-4e38}'::double precision[]::sparsevec;
|
||||
SELECT '{1e-46,-1e-46}'::double precision[]::sparsevec;
|
||||
|
||||
-- vector to array
|
||||
|
||||
SELECT '[1,2,3]'::vector::real[];
|
||||
|
||||
Reference in new issue
Block a user