Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chebbyChefNEQ committed Jan 26, 2025
1 parent ef1ebf0 commit e21d06d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rust/lance/src/io/exec/knn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,9 @@ impl ExecutionPlan for ANNIvfSubIndexExec {
mut children: Vec<Arc<dyn ExecutionPlan>>,
) -> DataFusionResult<Arc<dyn ExecutionPlan>> {
let plan = if children.len() == 1 || children.len() == 2 {
if children.len() == 2 {
let _prefilter = children.pop().expect("length checked");
}
// NOTE!!!! Prefilter transformation is ignored.
Self {
input: children.pop().expect("length checked"),
Expand Down

0 comments on commit e21d06d

Please sign in to comment.