Non-deterministic order for NULL and NaN distances

This commit is contained in:
Andrew Kane
2023-08-04 16:08:19 -07:00
parent f27ac1e338
commit 348bfb71ff
4 changed files with 0 additions and 28 deletions

View File

@@ -7,6 +7,5 @@ CREATE INDEX ON t USING hnsw (val vector_ip_ops);
INSERT INTO t (val) VALUES ('[1,2,4]');
SELECT * FROM t ORDER BY val <#> '[3,3,3]';
SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector);
DROP TABLE t;