Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu committed Jan 22, 2023
1 parent 15d608d commit 8d7b795
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions rust/src/index/vector/flat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
use arrow_array::{cast::as_struct_array, ArrayRef, RecordBatch, StructArray};
use arrow_ord::sort::sort_to_indices;
use arrow_schema::{DataType, Field as ArrowField};
use arrow_select::{
concat::{concat, concat_batches},
take::take,
};
use arrow_select::{concat::concat_batches, take::take};
use async_trait::async_trait;
use futures::stream::{Stream, TryStreamExt};

Expand All @@ -47,9 +44,6 @@ use crate::{Error, Result};
pub struct FlatIndex<'a> {
dataset: &'a Dataset,

/// Index name.
name: String,

/// Vector column to search for.
column: String,
}
Expand All @@ -58,7 +52,6 @@ impl<'a> FlatIndex<'a> {
pub fn try_new(dataset: &'a Dataset, name: &str) -> Result<Self> {
Ok(Self {
dataset,
name: name.to_string(),
column: name.to_string(),
})
}
Expand Down

0 comments on commit 8d7b795

Please sign in to comment.