Skip to content

Commit

Permalink
chore: better error message for unsupported data type (#3371)
Browse files Browse the repository at this point in the history
Signed-off-by: BubbleCal <[email protected]>
  • Loading branch information
BubbleCal authored Jan 13, 2025
1 parent 167494c commit 47b0b6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/lance/src/index/vector/ivf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,11 @@ async fn train_ivf_model(
.await
}
_ => Err(Error::Index {
message: "Unsupported data type".to_string(),
message: format!(
"Unsupported data type {} with distance type {}",
values.data_type(),
distance_type
),
location: location!(),
}),
}
Expand Down

0 comments on commit 47b0b6c

Please sign in to comment.