feat(mito): Combine the original and procedure's implementation (#1468)

* fix(mito): Add metrics to mito DDL procedure

* feat(mito): Use procedure's implementation to create table

* feat(mito): Use procedure's implementation to alter table

* feat(mito): Use procedure's implementation to drop table

* style(mito): Fix clippy

* test(mito): Fix tests

* feat(mito): Add TableCreator

* feat(mito): update alter table procedure

* fix(mito): alter procedure create alter op first

* feat(mito): Combine alter table code

* fix(mito): Fix deadlock

* feat(mito): Simplify drop table procedure
This commit is contained in:
Yingwen
2023-04-28 11:48:52 +08:00
committed by GitHub
parent 9e4887f29f
commit 51be35a7b1
8 changed files with 361 additions and 462 deletions

View File

@@ -234,6 +234,9 @@ impl EngineInner {
return if request.create_if_not_exists {
Ok(table)
} else {
// If the procedure retry this method. It is possible to return error
// when the table is already created.
// TODO(yingwen): Refactor this like the mito engine.
TableExistsSnafu { table_name }.fail()
};
}