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

Function plan_ann_err

nodedb-sql/src/planner/select/entry_ann.rs:321–331  ·  view source on GitHub ↗
(sql: &str)

Source from the content-addressed store, hash-verified

319 }
320
321 fn plan_ann_err(sql: &str) -> crate::error::SqlError {
322 let (preprocessed_sql, temporal) = match preprocess(sql).unwrap() {
323 Some(p) => (p.sql, p.temporal),
324 None => (sql.to_string(), crate::TemporalScope::default()),
325 };
326 let statements = parse_sql(&preprocessed_sql).unwrap();
327 let Statement::Query(query) = &statements[0] else {
328 panic!("expected query statement");
329 };
330 plan_query(query, &TestCatalog, &FunctionRegistry::new(), temporal).unwrap_err()
331 }
332
333 #[test]
334 fn two_positional_args_default_options() {

Calls 4

preprocessFunction · 0.85
plan_queryFunction · 0.85
to_stringMethod · 0.80
parse_sqlFunction · 0.50