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

Method drop_view

datafusion/core/src/execution/context/mod.rs:1066–1078  ·  view source on GitHub ↗
(&self, cmd: DropView)

Source from the content-addressed store, hash-verified

1064 }
1065
1066 async fn drop_view(&self, cmd: DropView) -> Result<DataFrame> {
1067 let DropView {
1068 name, if_exists, ..
1069 } = cmd;
1070 let result = self
1071 .find_and_deregister(name.clone(), TableType::View)
1072 .await;
1073 match (result, if_exists) {
1074 (Ok(true), _) => self.return_empty_dataframe(),
1075 (_, true) => self.return_empty_dataframe(),
1076 (_, _) => exec_err!("View '{name}' doesn't exist."),
1077 }
1078 }
1079
1080 async fn drop_schema(&self, cmd: DropCatalogSchema) -> Result<DataFrame> {
1081 let DropCatalogSchema {

Callers 1

execute_logical_planMethod · 0.80

Calls 3

find_and_deregisterMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected