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

Function json_string_form_rejected

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

Source from the content-addressed store, hash-verified

431
432 #[test]
433 fn json_string_form_rejected() {
434 let err = plan_ann_err(
435 r#"SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], '{"quantization":"rabitq"}') LIMIT 5"#,
436 );
437 assert!(
438 matches!(err, crate::error::SqlError::Unsupported { ref detail } if detail.contains("JSON-string options are no longer supported")),
439 "expected Unsupported with JSON message, got: {err:?}"
440 );
441 }
442
443 #[test]
444 fn unknown_named_arg_rejected() {

Callers

nothing calls this directly

Calls 1

plan_ann_errFunction · 0.85

Tested by

no test coverage detected