adonis0147 commented on code in PR #16006: URL: https://github.com/apache/doris/pull/16006#discussion_r1071921323
########## fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java: ########## @@ -137,29 +137,17 @@ public void processDropMaterializedView(DropMaterializedViewStmt stmt) throws Dd if (!stmt.isForMTMV() && stmt.getTableName() == null) { throw new DdlException("Drop materialized view without table name is unsupported : " + stmt.toSql()); } - TableName tableName = !stmt.isForMTMV() ? stmt.getTableName() : stmt.getMTMVName(); - Database db; - OlapTable olapTable; - if (stmt.isIfExists()) { - try { - String dbName = tableName.getDb(); - db = Env.getCurrentInternalCatalog().getDbOrDdlException(dbName); - String name = tableName.getTbl(); - olapTable = (OlapTable) db.getTableOrMetaException(name, - !stmt.isForMTMV() ? TableType.OLAP : TableType.MATERIALIZED_VIEW); - } catch (Exception e) { - LOG.info("db or table not exists, msg={}", e.getMessage()); Review Comment: > DROP MATERIALIZED VIEW if exists mv; > > if mv not exist can above sql return ok ? Yes. -- 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