nooneuse commented on code in PR #66307:
URL: https://github.com/apache/doris/pull/66307#discussion_r3709864120
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/DropConstraintCommand.java:
##########
@@ -81,7 +84,18 @@ public void run(ConnectContext ctx, StmtExecutor executor)
throws Exception {
String.format("Unknown constraint %s on table %s.", name,
tableNameInfo));
}
List<MTMV> dependentMtmvs =
MTMVUtil.getDependentMtmvsByConstraint(tableNameInfo, constraint);
-
Env.getCurrentEnv().getConstraintManager().dropConstraint(tableNameInfo, name,
false);
+ if (constraint instanceof DistributionMappingConstraint && table
instanceof OlapTable) {
+ OlapTable olapTable = (OlapTable) table;
+ olapTable.writeLockOrDdlException();
Review Comment:
alright, i'll fix that
--
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]