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


##########
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:
   I realize your usecase may only be for read only access to a catalog in 
which case dropping it without cascade does make sense. But in general I think 
having the option for cascade would be good



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