nooneuse commented on code in PR #66307:
URL: https://github.com/apache/doris/pull/66307#discussion_r3842170008


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java:
##########
@@ -5996,6 +6002,18 @@ private void renameColumn(Database db, OlapTable table, 
String colName,
         if (partitionInfo.getPartitionColumns().stream().anyMatch(c -> 
c.getName().equalsIgnoreCase(colName))) {
             throw new DdlException("Renaming partition columns has problems, 
forbidden in current Doris version");
         }
+        String mappingConstraint =
+                
constraintManager.findDistributionMappingConstraintWithColumn(table, colName);
+        if (mappingConstraint == null) {
+            mappingConstraint = constraintManager.findConstraintWithColumn(

Review Comment:
   okay



-- 
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]

Reply via email to