Skip to content
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

Merged
merged 28 commits into from
Jan 23, 2023
Merged

Integrate flat index #448

merged 28 commits into from
Jan 23, 2023

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Jan 22, 2023

No description provided.

@eddyxu eddyxu marked this pull request as draft January 22, 2023 08:05
@@ -17,7 +17,10 @@

//! Flat Vector Index.

use std::sync::Arc;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused?

@@ -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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Print

.zip(stream::repeat_with(|| q.clone()))
.then(|(batch, q)| async move {
let batch = batch?;
let vectors = batch.column_with_name(&q.column).unwrap().clone();
Copy link
Contributor

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

@eddyxu eddyxu force-pushed the lei/integrate_flat_idx branch from 8d7b795 to c43390e Compare January 22, 2023 22:58
@eddyxu eddyxu marked this pull request as ready for review January 22, 2023 23:39
Copy link
Contributor

@changhiskhan changhiskhan left a 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(
Copy link
Contributor

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?

@eddyxu eddyxu merged commit fcdd1fc into main Jan 23, 2023
@eddyxu eddyxu deleted the lei/integrate_flat_idx branch January 23, 2023 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants