mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 22:40:40 +00:00
feat: implement rename table (#802)
* feat: support renaming tables in the mito table engine * chore: add test for table engine * chore: fix test
This commit is contained in:
@@ -80,12 +80,8 @@ impl TryFrom<AlterTable> for AlterExpr {
|
||||
drop_columns: vec![DropColumn { name: name.value }],
|
||||
})
|
||||
}
|
||||
AlterTableOperation::RenameTable { .. } => {
|
||||
// TODO update proto to support alter table name
|
||||
return UnsupportedAlterTableStatementSnafu {
|
||||
msg: "rename table not supported yet",
|
||||
}
|
||||
.fail();
|
||||
AlterTableOperation::RenameTable { new_table_name } => {
|
||||
alter_expr::Kind::RenameTable(api::v1::RenameTable { new_table_name })
|
||||
}
|
||||
};
|
||||
let expr = AlterExpr {
|
||||
|
||||
Reference in New Issue
Block a user