MCPcopy Create free account
hub / github.com/apache/datafusion / drop_table

Method drop_table

datafusion/core/src/execution/context/mod.rs:1052–1064  ·  view source on GitHub ↗
(&self, cmd: DropTable)

Source from the content-addressed store, hash-verified

1050 }
1051
1052 async fn drop_table(&self, cmd: DropTable) -> Result<DataFrame> {
1053 let DropTable {
1054 name, if_exists, ..
1055 } = cmd;
1056 let result = self
1057 .find_and_deregister(name.clone(), TableType::Base)
1058 .await;
1059 match (result, if_exists) {
1060 (Ok(true), _) => self.return_empty_dataframe(),
1061 (_, true) => self.return_empty_dataframe(),
1062 (_, _) => exec_err!("Table '{name}' doesn't exist."),
1063 }
1064 }
1065
1066 async fn drop_view(&self, cmd: DropView) -> Result<DataFrame> {
1067 let DropView {

Callers 1

execute_logical_planMethod · 0.80

Calls 3

find_and_deregisterMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected