This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 546c7677652 [fix](unique key) getEnableUniqueKeyMergeOnWrite should
check key type (#44688)
546c7677652 is described below
commit 546c7677652859a0f711d9771973fca71026cb0a
Author: zhannngchen <[email protected]>
AuthorDate: Wed Nov 27 22:11:12 2024 +0800
[fix](unique key) getEnableUniqueKeyMergeOnWrite should check key type
(#44688)
---
fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
index 9b95b1b20ec..ffb9a0605af 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java
@@ -2418,6 +2418,9 @@ public class OlapTable extends Table {
if (tableProperty == null) {
return false;
}
+ if (getKeysType() != KeysType.UNIQUE_KEYS) {
+ return false;
+ }
return tableProperty.getEnableUniqueKeyMergeOnWrite();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]