@@ -49,7 +49,7 @@ Status FileSystemCatalog::CreateDatabase(const std::string& db_name,
4949 return Status::Invalid (
5050 fmt::format (" Cannot create database for system database {}." , db_name));
5151 }
52- PAIMON_ASSIGN_OR_RAISE (bool exist, DataBaseExists (db_name));
52+ PAIMON_ASSIGN_OR_RAISE (bool exist, DatabaseExists (db_name));
5353 if (exist) {
5454 if (ignore_if_exists) {
5555 return Status::OK ();
@@ -78,10 +78,10 @@ Status FileSystemCatalog::CreateDatabaseImpl(const std::string& db_name,
7878 return Status::OK ();
7979}
8080
81- Result<bool > FileSystemCatalog::DataBaseExists (const std::string& db_name) const {
81+ Result<bool > FileSystemCatalog::DatabaseExists (const std::string& db_name) const {
8282 if (IsSystemDatabase (db_name)) {
8383 return Status::NotImplemented (
84- " do not support checking DataBaseExists for system database." );
84+ " do not support checking DatabaseExists for system database." );
8585 }
8686 return fs_->Exists (NewDatabasePath (warehouse_, db_name));
8787}
@@ -102,7 +102,7 @@ Status FileSystemCatalog::CreateTable(const Identifier& identifier, ArrowSchema*
102102 fmt::format (" Cannot create table for system table {}, please use data table." ,
103103 identifier.ToString ()));
104104 }
105- PAIMON_ASSIGN_OR_RAISE (bool db_exist, DataBaseExists (identifier.GetDatabaseName ()));
105+ PAIMON_ASSIGN_OR_RAISE (bool db_exist, DatabaseExists (identifier.GetDatabaseName ()));
106106 if (!db_exist) {
107107 return Status::Invalid (
108108 fmt::format (" database {} is not exist" , identifier.GetDatabaseName ()));
0 commit comments