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
()
| 231 | /// assert!(std::path::PathBuf::from(csvdata).exists()); |
| 232 | /// ``` |
| 233 | pub 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 |
no test coverage detected
searching dependent graphs…