Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
get_data_dir in datafusion_common::test_util - Rust
[go: Go Back, main page]

Function datafusion_common::test_util::get_data_dir

source ·
pub fn get_data_dir(
    udf_env: &str,
    submodule_data: &str
) -> Result<PathBuf, Box<dyn Error>>
Expand description

Returns a directory path for finding test data.

udf_env: name of an environment variable

submodule_dir: fallback path (relative to CARGO_MANIFEST_DIR)

Returns either: The path referred to in udf_env if that variable is set and refers to a directory The submodule_data directory relative to CARGO_MANIFEST_PATH