This is an automated email from the ASF dual-hosted git repository.

zhangchen pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new e10f1e98893 branch-2.1: [fix](unique key) 
getEnableUniqueKeyMergeOnWrite should check keys type #44692 (#44896)
e10f1e98893 is described below

commit e10f1e988939b2a098f79cea14d1a16dce1b0852
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Dec 3 20:17:19 2024 +0800

    branch-2.1: [fix](unique key) getEnableUniqueKeyMergeOnWrite should check 
keys type #44692 (#44896)
    
    Cherry-picked from #44692
    
    Co-authored-by: zhannngchen <zhangc...@selectdb.com>
---
 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 0c6cbc828e4..001f36841a7 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
@@ -2690,6 +2690,9 @@ public class OlapTable extends Table implements 
MTMVRelatedTableIf {
         if (tableProperty == null) {
             return false;
         }
+        if (getKeysType() != KeysType.UNIQUE_KEYS) {
+            return false;
+        }
         return tableProperty.getEnableUniqueKeyMergeOnWrite();
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to