Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: BubbleCal <[email protected]>
  • Loading branch information
BubbleCal committed Feb 8, 2025
1 parent 0525f33 commit dbfa98b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rust/lance/src/io/exec/knn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,7 @@ impl ExecutionPlan for MultivectorScoringExec {
self: Arc<Self>,
children: Vec<Arc<dyn ExecutionPlan>>,
) -> DataFusionResult<Arc<dyn ExecutionPlan>> {
let plan =
MultivectorScoringExec::try_new(self.dataset.clone(), children, self.query.clone())?;
let plan = Self::try_new(self.dataset.clone(), children, self.query.clone())?;
Ok(Arc::new(plan))
}

Expand Down Expand Up @@ -792,9 +791,7 @@ impl ExecutionPlan for MultivectorScoringExec {
}
});
query_results.into_iter().for_each(|(row_id, sim)| {
if !results.contains_key(&row_id) {
results.insert(row_id, sim + missed_similarities);
}
results.entry(row_id).or_insert(sim + missed_similarities);
});
missed_similarities += min_sim;
}
Expand Down

0 comments on commit dbfa98b

Please sign in to comment.