Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei authored and morrySnow committed Jan 6, 2025
1 parent 886c68f commit fb11a39
Showing 1 changed file with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -124,10 +123,6 @@ public boolean isUniformAndHasConstValue(Slot slot) {
return uniformSet.isUniformAndHasConstValue(slot);
}

public Map<Slot, Optional<Expression>> getSlotUniformValueMap() {
return new HashMap<>(uniformSet.slotUniformValue);
}

public Optional<Expression> getUniformValue(Slot slot) {
return uniformSet.slotUniformValue.get(slot);
}
Expand Down Expand Up @@ -200,10 +195,6 @@ public void addUniformSlotForOuterJoinNullableSide(DataTrait dataTrait) {
uniformSet.addUniformSlotForOuterJoinNullableSide(dataTrait.uniformSet);
}

public void addUniformSlotValueMap(Map<Slot, Optional<Expression>> map) {
uniformSet.add(map);
}

public void addUniformSlotAndLiteral(Slot slot, Expression literal) {
uniformSet.add(slot, literal);
}
Expand Down Expand Up @@ -547,17 +538,13 @@ public void add(Set<Slot> slots) {
}
}

public void add(Map<Slot, Optional<Expression>> map) {
slotUniformValue.putAll(map);
for (Map.Entry<Slot, Optional<Expression>> entry : map.entrySet()) {
public void add(UniformDescription ud) {
slotUniformValue.putAll(ud.slotUniformValue);
for (Map.Entry<Slot, Optional<Expression>> 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());
Expand Down

0 comments on commit fb11a39

Please sign in to comment.