MCPcopy Create free account
hub / github.com/apache/datafusion / query_with_expr

Method query_with_expr

datafusion/core/tests/parquet/mod.rs:336–349  ·  view source on GitHub ↗

runs a query like "SELECT * from t WHERE and returns the number of output rows and normalized execution metrics

(&mut self, expr: Expr)

Source from the content-addressed store, hash-verified

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

Callers 2

prune_date64Function · 0.80
prune_date64Function · 0.80

Calls 6

provider_as_sourceFunction · 0.85
scanFunction · 0.50
buildMethod · 0.45
filterMethod · 0.45
cloneMethod · 0.45
run_testMethod · 0.45

Tested by

no test coverage detected