This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new de148465bc [feature-wip](unique-key-merge-on-write) unique key table
with MOW supports update (#11882)
de148465bc is described below
commit de148465bc4415886ce3aa93177349423eb8ce4c
Author: Xin Liao <[email protected]>
AuthorDate: Fri Aug 26 09:44:37 2022 +0800
[feature-wip](unique-key-merge-on-write) unique key table with MOW supports
update (#11882)
---
fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
b/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
index 26577b5379..921bdd0cfa 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/UpdateStmt.java
@@ -17,7 +17,6 @@
package org.apache.doris.analysis;
-import org.apache.doris.catalog.AggregateType;
import org.apache.doris.catalog.Database;
import org.apache.doris.catalog.Env;
import org.apache.doris.catalog.KeysType;
@@ -170,7 +169,7 @@ public class UpdateStmt extends DdlStmt {
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()) {
throw new AnalysisException("Only value columns of unique
table could be updated.");
}
// check set expr of target column
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]