Use double for distance [skip ci]

This commit is contained in:
Andrew Kane
2024-10-09 17:04:25 -07:00
parent f4b67b078f
commit 3126fbdb6f

View File

@@ -485,7 +485,7 @@ HnswLoadElementFromTuple(HnswElement element, HnswElementTuple etup, bool loadHe
/*
* Calculate the distance between values
*/
static inline float
static inline double
HnswGetDistance(Datum a, Datum b, FmgrInfo *procinfo, Oid collation)
{
return DatumGetFloat8(FunctionCall2Coll(procinfo, collation, a, b));