Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: gengjun-git <gengjun@starrocks.com>
  • Loading branch information
gengjun-git committed Aug 15, 2024
1 parent 7f06816 commit 14434f0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions fe/fe-core/src/main/java/com/starrocks/catalog/CatalogUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,19 @@ public static void checkTempPartitionConflict(List<Partition> partitionList,
Set<List<Object>> tempMultiSet = new HashSet<>();
for (Partition partition : tempPartitionList) {
if (listPartitionInfo.isMultiColumnPartition()) {
multiListMap.get(partition.getId()).forEach(itemList -> {
List<Object> cur = new ArrayList<>();
itemList.forEach(item -> cur.add(item.getRealObjectValue()));
tempMultiSet.add(cur);
});
tempMultiSet = multiListMap.get(partition.getId())
.stream()
.map(literalExprs -> literalExprs
.stream()
.map(LiteralExpr::getRealObjectValue)
.collect(Collectors.toList()))
.collect(Collectors.toSet());
newMultiListMap.remove(partition.getId());
} else {
listMap.get(partition.getId()).forEach(item -> tempSet.add(item.getRealObjectValue()));
tempSet = listMap.get(partition.getId())
.stream()
.map(LiteralExpr::getRealObjectValue)
.collect(Collectors.toSet());
newListMap.remove(partition.getId());
}
}
Expand Down

0 comments on commit 14434f0

Please sign in to comment.