Fixed type check [skip ci]

This commit is contained in:
Andrew Kane
2024-04-01 22:31:02 -07:00
parent ab7b2ed39e
commit c75634a03c

View File

@@ -150,11 +150,16 @@ HnswOptionalProcInfo(Relation index, uint16 procnum)
}
/*
* Get vector type
* Get type
*/
HnswType
HnswGetType(Relation index)
{
Oid typid = TupleDescAttr(index->rd_att, 0)->atttypid;
if (typid == BITOID || typid == VARBITOID)
return HNSW_TYPE_BIT;
return HNSW_TYPE_VECTOR;
}