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

Function plan_one

nodedb-sql/src/planner/array_fn/tests.rs:77–89  ·  view source on GitHub ↗
(sql: &str)

Source from the content-addressed store, hash-verified

75}
76
77fn plan_one(sql: &str) -> Result<SqlPlan> {
78 let stmts = parse_sql(sql)?;
79 let q = match &stmts[0] {
80 sqlparser::ast::Statement::Query(q) => q,
81 _ => panic!("not a query"),
82 };
83 crate::planner::select::plan_query(
84 q,
85 &cat(),
86 &FunctionRegistry::new(),
87 crate::TemporalScope::default(),
88 )
89}
90
91#[test]
92fn slice_happy() {

Callers 8

slice_happyFunction · 0.85
project_happyFunction · 0.85
agg_scalarFunction · 0.85
agg_groupedFunction · 0.85
elementwise_happyFunction · 0.85
flush_happyFunction · 0.85
compact_happyFunction · 0.85

Calls 3

plan_queryFunction · 0.85
catFunction · 0.70
parse_sqlFunction · 0.50

Tested by

no test coverage detected