refactor: catalog (#1454)

* wip

* add schema_async

* remove CatalogList

* remove catalog provider and schema provider

* fix

* fix: rename table

* fix: sqlness

* fix: ignore tonic error metadata

* fix: table engine name

* feat: rename catalog_async to catalog

* respect engine name in table regional value when deregistering tables

* fix: CR
This commit is contained in:
Lei, HUANG
2023-04-26 16:36:40 +08:00
committed by GitHub
parent ef4e473e6d
commit fb9978e95d
59 changed files with 998 additions and 1227 deletions

View File

@@ -267,13 +267,16 @@ pub async fn create_test_table(
let schema_provider = catalog_manager
.catalog(DEFAULT_CATALOG_NAME)
.await
.unwrap()
.unwrap()
.schema(DEFAULT_SCHEMA_NAME)
.await
.unwrap()
.unwrap();
schema_provider
.register_table(table_name.to_string(), table)
.await
.unwrap();
Ok(())
}