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

Function plan_sql

nodedb/tests/executor_tests/test_group_by_alias.rs:50–54  ·  view source on GitHub ↗

Plan SQL through the full nodedb_sql planner and return the SqlPlan.

(sql: &str)

Source from the content-addressed store, hash-verified

48
49/// Plan SQL through the full nodedb_sql planner and return the SqlPlan.
50fn plan_sql(sql: &str) -> SqlPlan {
51 let plans = nodedb_sql::plan_sql(sql, &TimeseriesCatalog).unwrap();
52 assert_eq!(plans.len(), 1, "expected exactly one plan");
53 plans.into_iter().next().unwrap()
54}
55
56/// Plan SQL, convert to PhysicalPlan, and extract the plan from the first task.
57fn sql_to_physical(sql: &str) -> PhysicalPlan {

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected