qzsee commented on pull request #6839:
URL: https://github.com/apache/incubator-doris/pull/6839#issuecomment-943289410
What I would suggest is that it might be easier to just do it this way.
```java
for (Column alterColumn : alterSchema) {
if (alterColumn.nameEquals(partitionCol.getName(), true)) {
// 2.1 partition column cannot be modified
if (needAlterColumns.contains(alterColumn) &&
!alterColumn.equals(partitionCol) {
throw new DdlException("Can not modify partition column["
+ partitionCol.getName() + "]. index["
+ olapTable.getIndexNameById(alterIndexId) + "]");
}
found = true;
break;
}
}
```
--
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]