()
| 453 | |
| 454 | #[test] |
| 455 | fn wrong_operator_rejected() { |
| 456 | // quantization : 'rabitq' — PostgreSQL dialect parses `:` as a named |
| 457 | // arg operator (Colon), which is not the required RightArrow. |
| 458 | let err = plan_ann_err( |
| 459 | "SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], quantization : 'rabitq') LIMIT 5", |
| 460 | ); |
| 461 | assert!( |
| 462 | matches!(err, crate::error::SqlError::Unsupported { ref detail } if detail.contains("use '=>'")), |
| 463 | "expected Unsupported with operator message, got: {err:?}" |
| 464 | ); |
| 465 | } |
| 466 | |
| 467 | #[test] |
| 468 | fn duplicate_named_arg_rejected() { |
nothing calls this directly
no test coverage detected