forked from GreptimeTeam/greptimedb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: allocate table id in the procedure (GreptimeTeam#3271)
* refactor: replace TableMetadataManager with TableNameManager * refactor: allocate table id in the procedure * refactor: refactor client logical of handling retries * feat(test_util): add TestCreateTableExprBuilder * feat(test_util): add MockDatanodeManager * feat(test_util): add new_ddl_context * feat(test_util): add build_raw_table_info_from_expr * feat(test_util): add MockDatanodeManager::new * feat(procedure): add downcast_output_ref to Status * test(create_table): add tests for CreateTableProcedure on_prepare * refactor(ddl): rename handle_operate_region_error to add_peer_context_if_need * test(create_table): add tests for CreateTableProcedure on_datanode_create_regions * test(create_table): add tests for CreateTableProcedure on_create_metadata * refactor(meta): use CreateTableExprBuilder * feat(create_table): ensure number of partitions is greater than 0 * refactor: rename to add_peer_context_if_needed * feat: add context for panic * refactor: simplify the should_retry * refactor: use Option<&T> instead of &Option<T> * refactor: move downcast_output_ref under cfg(test) * chore: fmt toml
- Loading branch information
1 parent
be43a26
commit 6b48157
Showing
25 changed files
with
902 additions
and
191 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.