mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-15 17:16:56 +08:00
Fixed results for NULL and NaN distances [skip ci]
This commit is contained in:
@@ -13,8 +13,12 @@ SELECT * FROM t ORDER BY val <#> '[3,3,3]';
|
||||
(4 rows)
|
||||
|
||||
SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector);
|
||||
val
|
||||
-----
|
||||
(0 rows)
|
||||
val
|
||||
---------
|
||||
[1,1,1]
|
||||
[1,2,4]
|
||||
[1,2,3]
|
||||
[0,0,0]
|
||||
(4 rows)
|
||||
|
||||
DROP TABLE t;
|
||||
|
||||
Reference in New Issue
Block a user