This is an automated email from the ASF dual-hosted git repository. zhangchen pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 5149adb8994 branch-3.0: [fix](unique key) getEnableUniqueKeyMergeOnWrite should check keys type #44692 (#44895) 5149adb8994 is described below commit 5149adb8994465f325a701385a2cf468aa01d4a5 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Tue Dec 3 20:58:03 2024 +0800 branch-3.0: [fix](unique key) getEnableUniqueKeyMergeOnWrite should check keys type #44692 (#44895) 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 699d62397ac..543bd49dcbf 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 @@ -2713,6 +2713,9 @@ public class OlapTable extends Table implements MTMVRelatedTableIf, GsonPostProc 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