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

Function infer_scale_factor_from_path

benchmarks/src/tpch/run.rs:379–387  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

377}
378
379fn infer_scale_factor_from_path(path: &Path) -> Option<f64> {
380 path.iter().find_map(|component| {
381 component
382 .to_str()?
383 .strip_prefix("tpch_sf")?
384 .parse::<f64>()
385 .ok()
386 })
387}
388
389#[cfg(test)]
390mod scale_factor_tests {

Callers 1

resolve_scale_factorFunction · 0.85

Calls 2

strip_prefixMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…