liaoxin01 commented on code in PR #11882:
URL: https://github.com/apache/doris/pull/11882#discussion_r950030904
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java:
##########
@@ -170,7 +169,7 @@ private void analyzeSetExprs(Analyzer analyzer) throws
AnalysisException {
throw new AnalysisException("The left side of the set expr
must be the column name");
}
lhs.analyze(analyzer);
- if (((SlotRef) lhs).getColumn().getAggregationType() !=
AggregateType.REPLACE) {
+ if (((SlotRef) lhs).getColumn().isKey()) {
Review Comment:
AggregateType of value column is NONE in unique table with merge on write.
In order to be compatible with these two scenarios, `isKey` is used to
determine whether it is value column or key column.
--
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]