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

Function rewrite_with_param

nodedb-sql/src/parser/preprocess/vector_ops.rs:203–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202 #[test]
203 fn rewrite_with_param() {
204 let rewritten =
205 rewrite_arrow_distance("SELECT * FROM docs WHERE embedding <-> $1 < 0.5").unwrap();
206 assert!(
207 rewritten.contains("vector_distance(embedding, $1)"),
208 "got: {rewritten}"
209 );
210 }
211
212 // ── <=> (cosine) ──────────────────────────────────────────────────────
213

Callers

nothing calls this directly

Calls 1

rewrite_arrow_distanceFunction · 0.85

Tested by

no test coverage detected