miomiocat opened a new issue, #134:
URL: https://github.com/apache/paimon-vector-index/issues/134

   ### Motivation
   
   A C caller supplies `top_k` result slots for one query. When the native 
reader returns fewer ID/distance pairs, the FFI copy helper reports a length 
mismatch and discards valid matches. For example, a query with `top_k = 4` and 
two returned candidates should expose both candidates and two unused slots.
   
   ### Expected behavior
   
   For one query, copy the available pairs in order and fill missing IDs with 
`-1` and missing distances with `f32::MAX`. Batch calls must still enforce 
their expected output length. Inconsistent ID and distance arrays, oversized 
results and undersized output buffers should continue to report an error.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to