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

Function get_tpch_data_path

benchmarks/src/tpch/run.rs:452–462  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450 };
451
452 fn get_tpch_data_path() -> Result<String> {
453 let path =
454 std::env::var("TPCH_DATA").unwrap_or_else(|_| "benchmarks/data".to_string());
455 if !Path::new(&path).exists() {
456 return exec_err!(
457 "Benchmark data not found (set TPCH_DATA env var to override): {}",
458 path
459 );
460 }
461 Ok(path)
462 }
463
464 async fn round_trip_logical_plan(query: usize) -> Result<()> {
465 let ctx = SessionContext::default();

Callers 2

round_trip_logical_planFunction · 0.70
round_trip_physical_planFunction · 0.70

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…