MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / wrong_operator_rejected

Function wrong_operator_rejected

nodedb-sql/src/planner/select/entry_ann.rs:455–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

plan_ann_errFunction · 0.85

Tested by

no test coverage detected