Plan SQL through the full nodedb_sql planner and return the SqlPlan.
(sql: &str)
| 48 | |
| 49 | /// Plan SQL through the full nodedb_sql planner and return the SqlPlan. |
| 50 | fn 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. |
| 57 | fn sql_to_physical(sql: &str) -> PhysicalPlan { |
no test coverage detected