morningman commented on a change in pull request #6416: URL: https://github.com/apache/incubator-doris/pull/6416#discussion_r699264917
########## File path: fe/fe-core/src/main/java/org/apache/doris/alter/RollupJobV2.java ########## @@ -812,10 +787,14 @@ public void gsonPostProcess() throws IOException { return; } // parse the define stmt to schema - SqlParser parser = new SqlParser(new SqlScanner(new StringReader(origStmt.originStmt), - SqlModeHelper.MODE_DEFAULT)); + SqlParser parser = new SqlParser(new SqlScanner(new StringReader(origStmt.originStmt), SqlModeHelper.MODE_DEFAULT)); ConnectContext connectContext = new ConnectContext(); - Database db = Catalog.getCurrentCatalog().getDb(dbId); + Database db; + try { + db = Catalog.getCurrentCatalog().getDbOrMetaException(dbId); + } catch (MetaNotFoundException e) { + throw new IOException("error happens when parsing create materialized view stmt: " + origStmt, e); Review comment: OK, just keep it as before. -- 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