benbellick opened a new issue, #20550: URL: https://github.com/apache/datafusion/issues/20550
The Substrait physical plan producer emits bare paths instead of valid URIs for `LocalFiles` items. https://github.com/apache/datafusion/blob/1f26716280f330554b37791a057aaff44068698e/datafusion/substrait/src/physical_plan/producer.rs#L65-L67 This produces paths like `path/to/file.parquet` instead of proper URIs like `file:///path/to/file.parquet`. These bare paths fail `Url::parse()` with "relative URL without a base" since they're not valid URIs per RFC 3986. **Expected behavior:** The producer should emit valid `file://` URIs. **Suggested fix:** ```rust path_type: Some(PathType::UriPath( format!("file:///{}", file.object_meta.location.as_ref()), )), ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
