You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2026/07/15 05:08:59 UTC
Re: [PR] [core] Add primary-key vector read kernel [paimon-rust]
JingsongLi commented on PR #517:
URL: https://github.com/apache/paimon-rust/pull/517#issuecomment-4977063463
`pk_vector_orchestrator.rs:86` uses `f32::total_cmp` to simulate Java sorting, but negative NaNs are sorted before finite values; after taking the negative of the distance to NaN in the inner product, an anomalous row may be selected as Top-1, whereas Java’s `Float.compare` places NaNs at the end. It is recommended to implement a Java-style NaN comparator and add signed-NaN tests. The existing `pk_vector` passes 68 out of 68 tests, but this scenario is not covered.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org