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

Function unknown_named_arg_rejected

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

plan_ann_errFunction · 0.85

Tested by

no test coverage detected