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:
elijah
2023-01-03 17:37:27 +08:00
committed by GitHub
parent 5fcad7a175
commit a6eb213adf
8 changed files with 130 additions and 53 deletions

View File

@@ -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 {