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 14434f0 commit 2c39dd8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,11 +606,13 @@ public void setStorageCacheInfo(long partitionId, DataCacheInfo dataCacheInfo) {
public List<Long> getSortedPartitions(boolean asc) {
if (MapUtils.isNotEmpty(idToLiteralExprValues)) {
return idToLiteralExprValues.entrySet().stream()
.filter(e -> !e.getValue().isEmpty())
.sorted((x, y) -> compareRow(x.getValue(), y.getValue(), asc))
.map(Map.Entry::getKey)
.collect(Collectors.toList());
} else if (MapUtils.isEmpty(idToMultiLiteralExprValues)) {
return idToMultiLiteralExprValues.entrySet().stream()
.filter(e -> !e.getValue().isEmpty())
.sorted((x, y) -> compareMultiValueList(x.getValue(), y.getValue(), asc))
.map(Map.Entry::getKey)
.collect(Collectors.toList());
Expand Down

0 comments on commit 2c39dd8

Please sign in to comment.