Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion datafusion/core/src/datasource/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ mod tests {
use datafusion_physical_plan::collect;
use std::{fs, sync::Arc};
use tempfile::TempDir;
use url::Url;

#[tokio::test]
async fn can_override_physical_expr_adapter() {
Expand Down Expand Up @@ -103,7 +104,8 @@ mod tests {
writer.write(&rec_batch).unwrap();
writer.close().unwrap();

let location = Path::parse(path.to_str().unwrap()).unwrap();
let url = Url::from_file_path(path.canonicalize().unwrap()).unwrap();
let location = Path::from_url_path(url.path()).unwrap();
let metadata = fs::metadata(path.as_path()).expect("Local file metadata");
let meta = ObjectMeta {
location,
Expand Down