mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 10:11:20 +08:00
Improved tests [skip ci]
This commit is contained in:
@@ -142,6 +142,18 @@ SELECT l2_distance('{}/2'::sparsevec, '{1:3,2:4}/2');
|
||||
5
|
||||
(1 row)
|
||||
|
||||
SELECT l2_distance('{1:3}/2'::sparsevec, '{2:4}/2');
|
||||
l2_distance
|
||||
-------------
|
||||
5
|
||||
(1 row)
|
||||
|
||||
SELECT l2_distance('{2:4}/2'::sparsevec, '{1:3}/2');
|
||||
l2_distance
|
||||
-------------
|
||||
5
|
||||
(1 row)
|
||||
|
||||
SELECT l2_distance('{}/2'::sparsevec, '{2:1}/2');
|
||||
l2_distance
|
||||
-------------
|
||||
|
||||
Reference in New Issue
Block a user