vustef commented on code in PR #2247:
URL: https://github.com/apache/iceberg-rust/pull/2247#discussion_r3008410657


##########
crates/iceberg/src/io/storage/mod.rs:
##########
@@ -133,10 +137,16 @@ pub trait StorageFactory: Debug + Send + Sync {
     /// # Arguments
     ///
     /// * `config` - The storage configuration containing scheme and properties
+    /// * `metadata` - Optional table metadata that storage backends can use
+    ///   for table-level configuration (e.g., table properties).
     ///
     /// # Returns
     ///
     /// A `Result` containing an `Arc<dyn Storage>` on success, or an error
     /// if the storage could not be created.
-    fn build(&self, config: &StorageConfig) -> Result<Arc<dyn Storage>>;
+    fn build(
+        &self,
+        config: &StorageConfig,
+        metadata: Option<&TableMetadata>,

Review Comment:
   I see. Indeed my use-case isn't distributed compute engine, so haven't 
considered that at all.
   What would be our vended storage credential refresh story then?



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

Reply via email to