liurenjie1024 commented on code in PR #308: URL: https://github.com/apache/iceberg-rust/pull/308#discussion_r1547526634
########## crates/catalog/rest/src/catalog.rs: ########## @@ -617,7 +617,13 @@ impl RestCatalog { props.extend(config); } - let file_io = match self.config.warehouse.as_deref().or(metadata_location) { + let warehouse_path = match self.config.warehouse.as_deref() { + Some(url) if url.contains("://") => Some(url), Review Comment: Yes, we don't need to raise an exception here, just match `if Url::parse().is_ok()` would be enough. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org