spaces-X commented on code in PR #11882: URL: https://github.com/apache/doris/pull/11882#discussion_r948611264
########## 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: Could you add some details in this pr to explain the difference between this and the original one. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org