SWJTU-ZhangLei commented on code in PR #48087:
URL: https://github.com/apache/doris/pull/48087#discussion_r1961300264
##########
fe/fe-core/src/main/java/org/apache/doris/qe/DdlExecutor.java:
##########
@@ -563,7 +563,6 @@ private static void checkDdlStmtSupported(DdlStmt ddlStmt)
throws DdlException {
|| ddlStmt instanceof AdminCleanTrashStmt
|| ddlStmt instanceof AdminRebalanceDiskStmt
|| ddlStmt instanceof AdminCancelRebalanceDiskStmt
- || ddlStmt instanceof AlterResourceStmt
Review Comment:
```
public void alterResource(AlterResourceStmt stmt) throws DdlException {
String resourceName = stmt.getResourceName();
Map<String, String> properties = stmt.getProperties();
if (!nameToResource.containsKey(resourceName)) {
throw new DdlException("Resource(" + resourceName + ") dose not
exist.");
}
Resource resource = nameToResource.get(resourceName);
resource.modifyProperties(properties);
// log alter
Env.getCurrentEnv().getEditLog().logAlterResource(resource);
LOG.info("Alter resource success. Resource: {}", resource);
}
```
--
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]