fqaiser94 commented on code in PR #481:
URL: https://github.com/apache/iceberg-rust/pull/481#discussion_r1691486557


##########
crates/iceberg/src/io/storage.rs:
##########
@@ -79,6 +87,16 @@ impl Storage {
     ) -> crate::Result<(Operator, &'a str)> {
         let path = path.as_ref();
         match self {
+            #[cfg(feature = "storage-memory")]
+            Storage::Memory { config } => {
+                let op = config.build(path)?;
+
+                if let Some(stripped) = path.strip_prefix("file:/") {
+                    Ok((op, stripped))

Review Comment:
   nit: I don't personally think that stripping `file:/` is necessary. 
   If users want to use file-system like naming inside memory-storage, I would 
just let them 🤷 
   Otherwise, you could argue that you should also strip things like `s3:/` as 
well 😄 



-- 
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

Reply via email to