Revert "[cherry-pick](branch-2.1) Fix enable_mow_light_delete default value" (#40359)

Reverts apache/doris#40283
This commit is contained in:
yiguolei
2024-09-04 17:55:25 +08:00
committed by GitHub
parent 653daeb8cb
commit 08fb91f161
2 changed files with 4 additions and 6 deletions

View File

@ -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")) {

View File

@ -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());
}