mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-28 23:02:43 +08:00
Fixed array to sparsevec cast not limiting to 16,000 non-zero elements [skip ci]
Co-authored-by: 0xJi3F
This commit is contained in:
@@ -745,6 +745,7 @@ array_to_sparsevec(PG_FUNCTION_ARGS)
|
||||
errmsg("unsupported array type")));
|
||||
}
|
||||
|
||||
CheckNnz(nnz, nelemsp);
|
||||
result = InitSparseVector(nelemsp, nnz);
|
||||
values = SPARSEVEC_VALUES(result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user