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

Function get_imdb_data_path

benchmarks/src/imdb/run.rs:505–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

503 };
504
505 fn get_imdb_data_path() -> Result<String> {
506 let path =
507 std::env::var("IMDB_DATA").unwrap_or_else(|_| "benchmarks/data".to_string());
508 if !Path::new(&path).exists() {
509 return exec_err!(
510 "Benchmark data not found (set IMDB_DATA env var to override): {}",
511 path
512 );
513 }
514 Ok(path)
515 }
516
517 async fn round_trip_logical_plan(query: usize) -> Result<()> {
518 let ctx = SessionContext::default();

Callers 2

round_trip_logical_planFunction · 0.85
round_trip_physical_planFunction · 0.85

Calls 3

newFunction · 0.85
existsMethod · 0.80
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…