๐๐ฎ๐๐ฎ, ๐๐ป๐ฎ๐น๐๐๐ถ๐ฐ๐ & ๐๐. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
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.
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).
Because some info in TableInfo can not be provided by SchemaApi
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
chore: simplify SchemaApi::truncate_table()
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.
refactor: SchemaApi::list_tables() should specify db-id instead of db-name
Tests
Type of change
Related Issues
This change isโ