We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ef8be commit 65ba95eCopy full SHA for 65ba95e
datafusion/core/src/datasource/listing/url.rs
@@ -110,7 +110,7 @@ impl ListingTableUrl {
110
/// Creates a new [`ListingTableUrl`] from a url and optional glob expression
111
fn new(url: Url, glob: Option<Pattern>) -> Self {
112
let decoded_path = percent_encoding::percent_decode_str(url.path()).decode_utf8_lossy();
113
- let prefix = Path::parse(decoded_path).expect("should be URL safe");
+ let prefix = Path::from(decoded_path.as_ref());
114
Self { url, prefix, glob }
115
}
116
0 commit comments