zjw1111 commented on code in PR #264:
URL: https://github.com/apache/paimon-cpp/pull/264#discussion_r3901527492


##########
src/paimon/rest/rest_catalog.cpp:
##########
@@ -159,16 +159,16 @@ Status RestCatalog::DropDatabase(const std::string& name, 
bool ignore_if_not_exi
     return status;
 }
 
-std::string RestCatalog::GetDatabaseLocation(const std::string& db_name) const 
{
+Result<std::string> RestCatalog::GetDatabaseLocation(const std::string& 
db_name) const {
     // The virtual "sys" database has no location and is unknown to the server.
     if (CatalogUtils::IsSystemDatabase(db_name)) {
-        return "";
+        return std::string();
     }
     Result<GetDatabaseResponse> response = api_->GetDatabase(db_name);
     if (!response.ok()) {
         PAIMON_LOG_WARN(logger_, "failed to get location of database %s: %s", 
db_name.c_str(),
                         response.status().ToString().c_str());
-        return "";
+        return std::string();

Review Comment:
   already has result, still need empty string here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to