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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]