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

Function arrow_distance_with_alias

nodedb-sql/src/parser/preprocess/pipeline.rs:279–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277
278 #[test]
279 fn arrow_distance_with_alias() {
280 let result = pp("SELECT embedding <-> ARRAY[0.1, 0.2] AS dist FROM articles").unwrap();
281 assert!(
282 result
283 .sql
284 .contains("vector_distance(embedding, ARRAY[0.1, 0.2]) AS dist"),
285 "got: {}",
286 result.sql
287 );
288 }
289
290 #[test]
291 fn fuzzy_object_literal_in_function() {

Callers

nothing calls this directly

Calls 1

ppFunction · 0.85

Tested by

no test coverage detected