Dandandan commented on a change in pull request #9445:
URL: https://github.com/apache/arrow/pull/9445#discussion_r572425917



##########
File path: rust/datafusion/src/execution/context.rs
##########
@@ -287,6 +287,18 @@ impl ExecutionContext {
             .insert(name.to_string(), provider.into());
     }
 
+    /// Deregisters the named table.
+    ///
+    /// Returns true if the table was successfully de-reregistered.
+    pub fn deregister_table(&mut self, name: &str) -> bool {
+        self.state
+            .lock()
+            .unwrap()
+            .datasources
+            .remove(&name.to_string())

Review comment:
       I believe you should be able to use `remove(name)` here?




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to