()
| 442 | |
| 443 | #[test] |
| 444 | fn unknown_named_arg_rejected() { |
| 445 | let err = plan_ann_err( |
| 446 | "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], future_key => 'val') LIMIT 5", |
| 447 | ); |
| 448 | assert!( |
| 449 | matches!(err, crate::error::SqlError::Unsupported { ref detail } if detail.contains("unknown ANN option")), |
| 450 | "expected Unsupported with unknown option message, got: {err:?}" |
| 451 | ); |
| 452 | } |
| 453 | |
| 454 | #[test] |
| 455 | fn wrong_operator_rejected() { |
nothing calls this directly
no test coverage detected