-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: simplify SchemaApi::truncate_table() (#16506)
* refactor: SchemaApi::list_tables() should specify db-id instead of db-name - Change list_tables() to accept db_id instead of db_name for better precision - Modify return type from TableInfo to (table_name, table_id, SeqV<table_meta>). Because some info in TableInfo can not be provided by SchemaApi * refactor: when SchemaApi::truncate_table(), no need to assert table seq truncate_table() first lists all copied files belonging to a table, then deletes them in small chunks. The delete operations assert that the seq of each file does not change. With this approach, there is no need to assert that the seq of the containing table does not change. * chore: simplify SchemaApi::truncate_table() * chore: fixup lint
- Loading branch information
1 parent
83a3e5a
commit b4e3025
Showing
6 changed files
with
127 additions
and
279 deletions.
There are no files selected for viewing
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.