gavinchou commented on code in PR #37677: URL: https://github.com/apache/doris/pull/37677#discussion_r1676837312
########## 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"); } } if (storageVaultName == null || storageVaultName.isEmpty()) { - throw new DdlException("Invalid Storage Vault, please set one useful storage vault"); + throw new DdlException("Invalid Storage Vault. You can use show storage vault stmt to" + + "get full vaults, and pick one to set the table's property"); Review Comment: ```suggestion throw new DdlException("Invalid Storage Vault. " + " You can use `SHOW STORAGE VAULT` to get all available vaults," + ", and pick one to set the table property `\"storage_vault_name\" = \"<vault_name>\"`"); ``` -- 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