miomiocat opened a new pull request, #1522: URL: https://github.com/apache/paimon-rust/pull/1522
### Purpose Closes #1521. Let a consumer retrieve row IDs and scores directly for its assigned row range. Filtering after Top-K can lose valid candidates whenever the table-wide best matches fall outside that range. ### Brief change log - Intersect the inclusive global row-ID interval with any scalar or bitmap filter before ranking candidates. - Expose a scored C execution path that returns `row_id` and `score` as Arrow Int64 and Float32. Propagate the expected metric to indexed, raw and scheduled searches and reject incompatible metrics. ### Tests Added coverage for inclusive and invalid ranges, intersection with a scalar predicate, scored results, and distance-metric mismatches. Local verification passed with `cargo build --locked -p paimon-c --lib` and `cargo fmt --all -- --check`. Test execution is left to upstream CI. ### API and Format Adds C builder calls to set a row range and expected distance metric and to execute a scored search. Global row ranges apply to global row IDs. Primary-key results have file-local positions. ### Documentation The C binding guide describes scored output, interval bounds, prefiltering and distance metrics. -- 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]
