abstractdog commented on code in PR #27580:
URL: https://github.com/apache/datafusion/pull/27580#discussion_r4738346159


##########
datafusion/execution/src/object_store.rs:
##########
@@ -162,6 +174,21 @@ pub trait ObjectStoreRegistry: Send + Sync + 
std::fmt::Debug + 'static {
     /// the `url` and [`ObjectStoreRegistry`] implementation. An 
[`ObjectStore`] may be lazily
     /// created and registered.
     fn get_store(&self, url: &Url) -> Result<Arc<dyn ObjectStore>>;
+
+    /// Returns the [`ObjectStoreUrl`] under which `store` is registered, if
+    /// it is known.
+    ///
+    /// This is the reverse of [`Self::get_store`]. It lets code that is only
+    /// handed an [`ObjectStore`], such as `FileFormat::infer_schema`, find the
+    /// identity of that store, for example to key the file metadata cache.
+    /// Returning `None` is always correct, and makes such callers skip work
+    /// that needs the store's identity.
+    ///
+    /// The default implementation returns `None`.
+    #[expect(unused_variables)]
+    fn get_store_url(&self, store: &Arc<dyn ObjectStore>) -> 
Option<ObjectStoreUrl> {
+        None

Review Comment:
   ack, I think we "might want to" break API here, if the other change also 
breaks



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