You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/09/04 04:55:45 UTC

(doris) branch revert-40283-Pick-40197 created (now e7e20de6f10)

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

yiguolei pushed a change to branch revert-40283-Pick-40197
in repository https://gitbox.apache.org/repos/asf/doris.git


      at e7e20de6f10 Revert "[cherry-pick](branch-2.1) Fix `enable_mow_light_delete` default value…"

This branch includes the following new commits:

     new e7e20de6f10 Revert "[cherry-pick](branch-2.1) Fix `enable_mow_light_delete` default value…"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


(doris) 01/01: Revert "[cherry-pick](branch-2.1) Fix `enable_mow_light_delete` default value…"

Posted by yi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch revert-40283-Pick-40197
in repository https://gitbox.apache.org/repos/asf/doris.git

commit e7e20de6f1044f9fdf342ee64e090545f397054a
Author: yiguolei <67...@qq.com>
AuthorDate: Wed Sep 4 12:55:38 2024 +0800

    Revert "[cherry-pick](branch-2.1) Fix `enable_mow_light_delete` default value…"
    
    This reverts commit c49b345342326f1e53f8fe22b7b1e9df09b62d29.
---
 .../main/java/org/apache/doris/common/util/PropertyAnalyzer.java   | 7 +++----
 .../src/main/java/org/apache/doris/datasource/InternalCatalog.java | 3 +--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java b/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
index dd39b12a18e..d1a710bcf9f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
@@ -1311,15 +1311,14 @@ public class PropertyAnalyzer {
         throw new AnalysisException(PropertyAnalyzer.ENABLE_UNIQUE_KEY_MERGE_ON_WRITE + " must be `true` or `false`");
     }
 
-    public static boolean analyzeEnableDeleteOnDeletePredicate(Map<String, String> properties,
-            boolean enableUniqueKeyMergeOnWrite)
+    public static boolean analyzeEnableDeleteOnDeletePredicate(Map<String, String> properties)
             throws AnalysisException {
         if (properties == null || properties.isEmpty()) {
-            return enableUniqueKeyMergeOnWrite ? Config.enable_mow_light_delete : false;
+            return false;
         }
         String value = properties.get(PropertyAnalyzer.PROPERTIES_ENABLE_MOW_LIGHT_DELETE);
         if (value == null) {
-            return enableUniqueKeyMergeOnWrite ? Config.enable_mow_light_delete : false;
+            return false;
         }
         properties.remove(PropertyAnalyzer.PROPERTIES_ENABLE_MOW_LIGHT_DELETE);
         if (value.equals("true")) {
diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
index 46b1c44fa23..1fb8826903b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
@@ -2498,8 +2498,7 @@ public class InternalCatalog implements CatalogIf<Database> {
 
         boolean enableDeleteOnDeletePredicate = false;
         try {
-            enableDeleteOnDeletePredicate = PropertyAnalyzer.analyzeEnableDeleteOnDeletePredicate(properties,
-                    enableUniqueKeyMergeOnWrite);
+            enableDeleteOnDeletePredicate = PropertyAnalyzer.analyzeEnableDeleteOnDeletePredicate(properties);
         } catch (AnalysisException e) {
             throw new DdlException(e.getMessage());
         }


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