mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Improved l2_normalize test for sparsevec [skip ci]
This commit is contained in:
@@ -328,3 +328,9 @@ SELECT l2_normalize('{1:3e38,2:1e-37}/2'::sparsevec);
|
||||
{1:1}/2
|
||||
(1 row)
|
||||
|
||||
SELECT l2_normalize('{2:3e37,4:3e-37,6:4e37,8:4e-37}/9'::sparsevec);
|
||||
l2_normalize
|
||||
-----------------
|
||||
{2:0.6,6:0.8}/9
|
||||
(1 row)
|
||||
|
||||
|
||||
@@ -62,3 +62,4 @@ SELECT l2_normalize('{2:0.1}/2'::sparsevec);
|
||||
SELECT l2_normalize('{}/2'::sparsevec);
|
||||
SELECT l2_normalize('{1:3e38}/1'::sparsevec);
|
||||
SELECT l2_normalize('{1:3e38,2:1e-37}/2'::sparsevec);
|
||||
SELECT l2_normalize('{2:3e37,4:3e-37,6:4e37,8:4e-37}/9'::sparsevec);
|
||||
|
||||
Reference in New Issue
Block a user