-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate flat index #448
Integrate flat index #448
Conversation
rust/src/index/vector/flat.rs
Outdated
@@ -17,7 +17,10 @@ | |||
|
|||
//! Flat Vector Index. | |||
|
|||
use std::sync::Arc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused?
rust/src/io/reader.rs
Outdated
@@ -202,6 +202,7 @@ impl<'a> FileReader<'a> { | |||
let indices_in_batches = self.metadata.group_indices_to_batches(indices); | |||
let batches = stream::iter(indices_in_batches) | |||
.then(|batch| async move { | |||
println!("Read batch: {:?}", batch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rust/src/io/exec/knn.rs
Outdated
.zip(stream::repeat_with(|| q.clone())) | ||
.then(|(batch, q)| async move { | ||
let batch = batch?; | ||
let vectors = batch.column_with_name(&q.column).unwrap().clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of mixing of ? And unwraps. Feels like should be using ? As much as possible here
8d7b795
to
c43390e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one nit. not a blocker.
columns.push(self.column(i).clone()); | ||
} | ||
} | ||
Ok(RecordBatch::try_new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we create drop_field
in Schema?
No description provided.