(&self, cmd: DropView)
| 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 { |
no test coverage detected