runs a query like "SELECT * from t WHERE and returns the number of output rows and normalized execution metrics
(&mut self, expr: Expr)
| 334 | /// runs a query like "SELECT * from t WHERE <expr> and returns |
| 335 | /// the number of output rows and normalized execution metrics |
| 336 | async fn query_with_expr(&mut self, expr: Expr) -> TestOutput { |
| 337 | let sql = format!("EXPR only: {expr:?}"); |
| 338 | let logical_plan = LogicalPlanBuilder::scan( |
| 339 | "t", |
| 340 | provider_as_source(self.provider.clone()), |
| 341 | None, |
| 342 | ) |
| 343 | .unwrap() |
| 344 | .filter(expr) |
| 345 | .unwrap() |
| 346 | .build() |
| 347 | .unwrap(); |
| 348 | self.run_test(logical_plan, sql).await |
| 349 | } |
| 350 | |
| 351 | /// Runs the specified SQL query and returns the number of output |
| 352 | /// rows and normalized execution metrics |