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

Function parquet_test_data

datafusion/common/src/test_util.rs:256–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254/// ```
255#[cfg(feature = "parquet")]
256pub fn parquet_test_data() -> String {
257 match get_data_dir("PARQUET_TEST_DATA", "../../parquet-testing/data") {
258 Ok(pb) => {
259 let mut path = pb.display().to_string();
260 if cfg!(target_os = "windows") {
261 // Replace backslashes (Windows paths; avoids some test issues).
262 path = path.replace("\\", "/");
263 }
264 path
265 }
266 Err(err) => panic!("failed to get parquet data dir: {err}"),
267 }
268}
269
270/// Returns a directory path for finding test data.
271///

Callers 15

custom_sql_parserFunction · 0.85
all_types_contextFunction · 0.85
get_execFunction · 0.85
load_tableFunction · 0.85
parquet_exec_with_rangeFunction · 0.85

Calls 3

get_data_dirFunction · 0.85
to_stringMethod · 0.45
displayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…