Fixed array to sparsevec cast not limiting to 16,000 non-zero elements [skip ci]

Co-authored-by: 0xJi3F
This commit is contained in:
Andrew Kane
2026-07-27 20:33:15 -07:00
parent 3e523434f4
commit 3566276bd4
4 changed files with 8 additions and 0 deletions

View File

@@ -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);