()
| 354 | |
| 355 | #[test] |
| 356 | fn named_ef_search() { |
| 357 | let plan = plan_ann( |
| 358 | "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], ef_search => 100) LIMIT 5", |
| 359 | ); |
| 360 | let SqlPlan::VectorSearch { |
| 361 | ann_options, |
| 362 | ef_search, |
| 363 | .. |
| 364 | } = plan |
| 365 | else { |
| 366 | panic!("expected VectorSearch plan"); |
| 367 | }; |
| 368 | assert_eq!(ann_options.ef_search_override, Some(100)); |
| 369 | assert_eq!(ef_search, 100); |
| 370 | } |
| 371 | |
| 372 | #[test] |
| 373 | fn named_oversample() { |
nothing calls this directly
no test coverage detected