Function datafusion::common::test_util::datafusion_test_data

source ยท
pub fn datafusion_test_data() -> String
Expand description

Returns the datafusion test data directory, which is by default rooted at datafusion/core/tests/data.

The default can be overridden by the optional environment variable DATAFUSION_TEST_DATA

panics when the directory can not be found.

Example:

let testdata = datafusion_common::test_util::datafusion_test_data();
let csvdata = format!("{}/window_1.csv", testdata);
assert!(std::path::PathBuf::from(csvdata).exists());