(
sql: &str,
dialect: &dyn Dialect,
options: ParserOptions,
state: MockSessionState,
)
| 3586 | } |
| 3587 | |
| 3588 | fn logical_plan_from_state( |
| 3589 | sql: &str, |
| 3590 | dialect: &dyn Dialect, |
| 3591 | options: ParserOptions, |
| 3592 | state: MockSessionState, |
| 3593 | ) -> Result<LogicalPlan> { |
| 3594 | let context = MockContextProvider { state }; |
| 3595 | let planner = SqlToRel::new_with_options(&context, options); |
| 3596 | let result = DFParser::parse_sql_with_dialect(sql, dialect); |
| 3597 | let mut ast = result?; |
| 3598 | planner.statement_to_plan(ast.pop_front().unwrap()) |
| 3599 | } |
| 3600 | |
| 3601 | fn make_udf(name: &'static str, args: Vec<DataType>, return_type: DataType) -> ScalarUDF { |
| 3602 | ScalarUDF::new_from_impl(DummyUDF::new(name, args, return_type)) |
no test coverage detected
searching dependent graphs…