mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 10:40:57 +08:00
Fixed vector to sparsevec conversion
This commit is contained in:
@@ -21,7 +21,7 @@ ERROR: expected 4 dimensions, not 5
|
||||
SELECT '[0,1.5,0,3.5,0]'::vector::sparsevec;
|
||||
sparsevec
|
||||
-----------------
|
||||
{1:1.5,3:3.5}/5
|
||||
{2:1.5,4:3.5}/5
|
||||
(1 row)
|
||||
|
||||
SELECT '{1:0,2:1,3:0}/3'::sparsevec;
|
||||
|
||||
Reference in New Issue
Block a user