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

Function arrow_test_data

datafusion/common/src/test_util.rs:233–238  ·  view source on GitHub ↗

Returns the arrow test data directory, which is by default stored in a git submodule rooted at `testing/data`. The default can be overridden by the optional environment variable `ARROW_TEST_DATA` panics when the directory can not be found. Example: ``` let testdata = datafusion_common::test_util::arrow_test_data(); let csvdata = format!("{}/csv/aggregate_test_100.csv", testdata); assert!(std::p

()

Source from the content-addressed store, hash-verified

231/// assert!(std::path::PathBuf::from(csvdata).exists());
232/// ```
233pub fn arrow_test_data() -> String {
234 match get_data_dir("ARROW_TEST_DATA", "../../testing/data") {
235 Ok(pb) => pb.display().to_string(),
236 Err(err) => panic!("failed to get arrow data dir: {err}"),
237 }
238}
239
240/// Returns the parquet test data directory, which is by default
241/// stored in a git submodule rooted at

Callers 15

create_contextFunction · 0.85
test_csv_scan_with_nameFunction · 0.85
test_csv_scanFunction · 0.85
get_execFunction · 0.85
query_compress_dataFunction · 0.85
test_csv_parallel_basicFunction · 0.85
test_with_storesFunction · 0.85
avro_exec_missing_columnFunction · 0.85
avro_exec_with_partitionFunction · 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…