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

Method query

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

Runs the specified SQL query and returns the number of output rows and normalized execution metrics

(&mut self, sql: &str)

Source from the content-addressed store, hash-verified

351 /// Runs the specified SQL query and returns the number of output
352 /// rows and normalized execution metrics
353 async fn query(&mut self, sql: &str) -> TestOutput {
354 println!("Planning sql {sql}");
355 let logical_plan = self
356 .ctx
357 .sql(sql)
358 .await
359 .expect("planning")
360 .into_unoptimized_plan();
361 self.run_test(logical_plan, sql).await
362 }
363
364 /// runs the logical plan
365 async fn run_test(

Callers 6

parseMethod · 0.45
test_pruneFunction · 0.45
without_pushdown_filterFunction · 0.45
test_row_group_pruneMethod · 0.45
prune_disabledFunction · 0.45

Calls 3

into_unoptimized_planMethod · 0.80
sqlMethod · 0.80
run_testMethod · 0.45

Tested by

no test coverage detected