JunRuiLee commented on PR #771:
URL: https://github.com/apache/paimon-rust/pull/771#issuecomment-5580277562
> Please show the API and let us discuss it.
Thanks for remind. I've updated the pr description to show the API.
The API now follows Java's two-step search/read model without adding a
generic Split abstraction to Rust:
```
let mut search = table.new_vector_search_builder();
search.with_vector_column("v").with_query_vector(q).with_limit(k);
let splits = search.search_for_bucket_splits(&split_bytes).await?;
let mut read_builder = table.new_read_builder();
read_builder.with_projection(&["id", "v"])?;
let read = read_builder.new_read()?;
let schema = read.indexed_read_type()?;
let rows = read.to_arrow_indexed(&splits)?;
```
--
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]