Fixed results for NULL and NaN distances [skip ci]

This commit is contained in:
Andrew Kane
2023-08-04 13:51:16 -07:00
parent 7f4acf9d43
commit 029c336c62
5 changed files with 63 additions and 21 deletions

View File

@@ -13,9 +13,13 @@ SELECT * FROM t ORDER BY val <-> '[3,3,3]';
(4 rows)
SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector);
val
-----
(0 rows)
val
---------
[0,0,0]
[1,1,1]
[1,2,3]
[1,2,4]
(4 rows)
SELECT COUNT(*) FROM t;
count