gavinchou commented on code in PR #37677:
URL: https://github.com/apache/doris/pull/37677#discussion_r1676836679


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -2491,11 +2491,15 @@ private boolean createOlapTable(Database db, 
CreateTableStmt stmt) throws UserEx
                 if (info != null) {
                     storageVaultName = info.first;
                     storageVaultId = info.second;
+                } else {
+                    throw new DdlException("No Default Storage Vault. You can 
use show storage vault stmt to"
+                            + "get full vaults, and set one as default storage 
vault");

Review Comment:
   ```suggestion
                       throw new DdlException("No default storage vault."
                               + " You can use stmt `SHOW STORAGE VAULT` to get 
all available vaults,"
                               + " and set default vault with `SET <vault_name> 
AS DEFAULT STORAGE VAULT`");
   ```



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to