SaintBacchus commented on code in PR #18026:
URL: https://github.com/apache/doris/pull/18026#discussion_r1144426993
##########
fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java:
##########
@@ -130,12 +130,8 @@ public void
processCreateMaterializedView(CreateMaterializedViewStmt stmt)
public void
processCreateMultiTableMaterializedView(CreateMultiTableMaterializedViewStmt
stmt)
throws UserException {
- // check db
- Database db = stmt.getDatabase();
// check cluster capacity
Env.getCurrentSystemInfo().checkClusterCapacity(stmt.getClusterName());
Review Comment:
`checkClusterCapacity` also be check in `createTable`

##########
fe/fe-core/src/test/java/org/apache/doris/catalog/MultiTableMaterializedViewTest.java:
##########
@@ -368,4 +368,146 @@ public void testCreateWithHint() throws Exception {
|| result.contains("SELECT /*+
SET_VAR(query_timeout=3600, exec_mem_limit=1048576) */")
);
}
+
+ @Test
+ public void testCreateWithViews() throws Exception {
+ createTable("CREATE TABLE lineorder ("
Review Comment:
all the ssb mv stmt can be covered in this case?
--
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]