diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/DataTrait.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/DataTrait.java index c16328a4edf346..ff4756979e450e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/DataTrait.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/DataTrait.java @@ -28,7 +28,6 @@ import com.google.common.collect.Sets; import java.util.ArrayList; -import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; @@ -124,10 +123,6 @@ public boolean isUniformAndHasConstValue(Slot slot) { return uniformSet.isUniformAndHasConstValue(slot); } - public Map> getSlotUniformValueMap() { - return new HashMap<>(uniformSet.slotUniformValue); - } - public Optional getUniformValue(Slot slot) { return uniformSet.slotUniformValue.get(slot); } @@ -200,10 +195,6 @@ public void addUniformSlotForOuterJoinNullableSide(DataTrait dataTrait) { uniformSet.addUniformSlotForOuterJoinNullableSide(dataTrait.uniformSet); } - public void addUniformSlotValueMap(Map> map) { - uniformSet.add(map); - } - public void addUniformSlotAndLiteral(Slot slot, Expression literal) { uniformSet.add(slot, literal); } @@ -547,17 +538,13 @@ public void add(Set slots) { } } - public void add(Map> map) { - slotUniformValue.putAll(map); - for (Map.Entry> entry : map.entrySet()) { + public void add(UniformDescription ud) { + slotUniformValue.putAll(ud.slotUniformValue); + for (Map.Entry> entry : ud.slotUniformValue.entrySet()) { add(entry.getKey(), entry.getValue().orElse(null)); } } - public void add(UniformDescription ud) { - add(ud.slotUniformValue); - } - public void add(Slot slot, Expression literal) { if (null == literal) { slotUniformValue.putIfAbsent(slot, Optional.empty());