We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a95da70 commit dd988f6Copy full SHA for dd988f6
1 file changed
datafusion/core/src/datasource/mod.rs
@@ -76,6 +76,7 @@ mod tests {
76
use datafusion_physical_plan::collect;
77
use std::{fs, sync::Arc};
78
use tempfile::TempDir;
79
+ use url::Url;
80
81
#[tokio::test]
82
async fn can_override_physical_expr_adapter() {
@@ -103,7 +104,8 @@ mod tests {
103
104
writer.write(&rec_batch).unwrap();
105
writer.close().unwrap();
106
- let location = Path::parse(path.to_str().unwrap()).unwrap();
107
+ let url = Url::from_file_path(path.canonicalize().unwrap()).unwrap();
108
+ let location = Path::from_url_path(url.path()).unwrap();
109
let metadata = fs::metadata(path.as_path()).expect("Local file metadata");
110
let meta = ObjectMeta {
111
location,
0 commit comments