mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-10 07:12:54 +00:00
feat: implement the drop database parser (#3521)
* refactor: refactor drop table parser * feat: implement drop database parser * fix: canonicalize name of create database * test: update sqlness result * Update src/operator/src/statement.rs Co-authored-by: Ruihang Xia <waynestxia@gmail.com> --------- Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -171,6 +171,13 @@ impl StatementExecutor {
|
||||
let table_name = TableName::new(catalog, schema, table);
|
||||
self.drop_table(table_name, stmt.drop_if_exists()).await
|
||||
}
|
||||
Statement::DropDatabase(_stmt) => {
|
||||
// TODO(weny): implement the drop database procedure
|
||||
error::NotSupportedSnafu {
|
||||
feat: "Drop Database",
|
||||
}
|
||||
.fail()
|
||||
}
|
||||
Statement::TruncateTable(stmt) => {
|
||||
let (catalog, schema, table) =
|
||||
table_idents_to_full_name(stmt.table_name(), &query_ctx)
|
||||
|
||||
Reference in New Issue
Block a user