Yulei-Yang commented on code in PR #40680: URL: https://github.com/apache/doris/pull/40680#discussion_r1971201444
########## fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java: ########## @@ -127,7 +127,7 @@ public void processCreateMaterializedView(CreateMaterializedViewStmt stmt) Database db = Env.getCurrentInternalCatalog().getDbOrDdlException(dbName); Env.getCurrentInternalCatalog().checkAvailableCapacity(db); - OlapTable olapTable = (OlapTable) db.getTableOrMetaException(tableName, TableType.OLAP); + OlapTable olapTable = (OlapTable) db.getNonTempTableOrMetaException(tableName, TableType.OLAP); Review Comment: Due to their lifecycle difference. A mtmv created base on temporary table will not work after session closed -- 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