From 04852aa27eedae3a42a7b746d6e78bce3f2a6eb9 Mon Sep 17 00:00:00 2001 From: Jeremyhi Date: Sat, 11 May 2024 17:39:49 +0800 Subject: [PATCH] chore: keep the same naming style (#3916) --- src/catalog/src/kvbackend/manager.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/catalog/src/kvbackend/manager.rs b/src/catalog/src/kvbackend/manager.rs index ca2305899b..19b5993916 100644 --- a/src/catalog/src/kvbackend/manager.rs +++ b/src/catalog/src/kvbackend/manager.rs @@ -218,7 +218,7 @@ impl CatalogManager for KvBackendCatalogManager { } async fn schema_exists(&self, catalog: &str, schema: &str) -> Result { - if self.system_catalog.schema_exist(schema) { + if self.system_catalog.schema_exists(schema) { return Ok(true); } @@ -230,7 +230,7 @@ impl CatalogManager for KvBackendCatalogManager { } async fn table_exists(&self, catalog: &str, schema: &str, table: &str) -> Result { - if self.system_catalog.table_exist(schema, table) { + if self.system_catalog.table_exists(schema, table) { return Ok(true); } @@ -382,11 +382,11 @@ impl SystemCatalog { } } - fn schema_exist(&self, schema: &str) -> bool { + fn schema_exists(&self, schema: &str) -> bool { schema == INFORMATION_SCHEMA_NAME } - fn table_exist(&self, schema: &str, table: &str) -> bool { + fn table_exists(&self, schema: &str, table: &str) -> bool { if schema == INFORMATION_SCHEMA_NAME { self.information_schema_provider.table(table).is_some() } else if schema == DEFAULT_SCHEMA_NAME {