pepijnve commented on code in PR #25112:
URL: https://github.com/apache/datafusion/pull/25112#discussion_r4070474674


##########
datafusion/session/src/catalog.rs:
##########
@@ -206,6 +216,17 @@ pub trait CatalogProviderList: Any + Debug + Sync + Send {
         catalog: Arc<dyn CatalogProvider>,
     ) -> Option<Arc<dyn CatalogProvider>>;
 
+    /// Removes a catalog from this list, returning it if it existed.
+    ///
+    /// Implementations of this method should return `Ok(None)` if no catalog
+    /// with `name` exists.
+    ///
+    /// By default returns a "Not Implemented" error
+    fn deregister_catalog(&self, name: &str) -> Result<Option<Arc<dyn 
CatalogProvider>>> {

Review Comment:
   While I was adding this I got stuck on describing the semantics of cascade. 
We're mainly trying to 'forget' a registered external connection to. What would 
the expected behaviour be if someone specifies `cascade: true` on an iceberg 
catalog for instance?



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