JingsongLi opened a new pull request, #446:
URL: https://github.com/apache/paimon-rust/pull/446

   ## Summary
   
   This PR aligns Rust global-index search behavior with Java by adding 
`global-index.search-mode` and applying it across scalar, vector, and full-text 
global index search paths.
   
   ## Changes
   
   - Add `global-index.search-mode` parsing with `fast`, `full`, and `detail` 
modes.
   - Track indexed row-id coverage for scalar BTree global indexes and include 
unindexed row ranges in `full`/`detail` modes.
   - Extend vector search to merge indexed results with raw fallback results, 
including raw metric resolution and Java-compatible scoring for `l2`, `cosine`, 
and `inner_product`.
   - Extend full-text search to fill raw gaps when full-text index coverage is 
incomplete.
   - Return an empty DataFusion execution plan for empty full-text search 
results instead of scanning the full table.
   
   ## Testing
   
   - [x] `cargo fmt`
   - [x] `cargo check -p paimon`
   - [x] `cargo check -p paimon --features fulltext`
   - [x] `cargo check -p paimon-datafusion --features fulltext`
   - [x] `cargo test -p paimon global_index --lib`
   - [x] `cargo test -p paimon table_scan --lib`
   - [x] `cargo test -p paimon vector_search_builder --lib`
   - [x] `cargo test -p paimon --features fulltext full_text --lib`
   
   ## Notes
   
   The vector path follows Java's behavior of allowing raw fallback in 
`full`/`detail` mode even when no vector index files exist. The full-text path 
only raw-fills gaps when full-text index files are present, matching Java's 
scan behavior.
   


-- 
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