Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: BubbleCal <[email protected]>
  • Loading branch information
BubbleCal committed Dec 3, 2024
1 parent 0d34f8b commit dfa1663
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions rust/lance/src/index/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ pub(crate) async fn remap_vector_index(
.open_vector_index(column, &old_uuid.to_string())
.await?;
old_index.check_can_remap()?;

let ivf_index: &IVFIndex =
old_index
.as_any()
Expand Down
6 changes: 0 additions & 6 deletions rust/lance/src/index/vector/pq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,6 @@ impl VectorIndex for PQIndex {

async fn remap(&mut self, mapping: &HashMap<u64, Option<u64>>) -> Result<()> {
let num_vectors = self.row_ids.as_ref().unwrap().len();
let code = self
.code
.as_ref()
.unwrap()
.values()
.chunks_exact(self.pq.code_dim());
let row_ids = self.row_ids.as_ref().unwrap().values().iter();
let transposed_codes = self.code.as_ref().unwrap();
let remapped = row_ids
Expand Down

0 comments on commit dfa1663

Please sign in to comment.