From b98ae6091ec0668368c11813f3e8a389e2192c0b Mon Sep 17 00:00:00 2001 From: 924060929 Date: Wed, 18 Dec 2024 21:14:19 +0800 Subject: [PATCH] fix --- .../doris/nereids/rules/expression/rules/PartitionPruner.java | 4 ++-- .../nereids/rules/expression/rules/SortedPartitionRanges.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/PartitionPruner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/PartitionPruner.java index 57db28cbc83abb5..6fc3aabf25e21b9 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/PartitionPruner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/PartitionPruner.java @@ -45,7 +45,6 @@ import com.google.common.collect.RangeSet; import com.google.common.collect.Sets; -import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -247,7 +246,8 @@ private static > List binarySearchFiltering( return Utils.fastToImmutableList(selectedIdSets); } - private static > List sequentialFiltering(Map idToPartitions, List partitionSlots, + private static > List sequentialFiltering( + Map idToPartitions, List partitionSlots, Expression partitionPredicate, CascadesContext cascadesContext, int expandThreshold) { List> evaluators = Lists.newArrayListWithCapacity(idToPartitions.size()); for (Entry kv : idToPartitions.entrySet()) { diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/SortedPartitionRanges.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/SortedPartitionRanges.java index fe67836405ecf9a..619111b6a706af0 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/SortedPartitionRanges.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/SortedPartitionRanges.java @@ -30,6 +30,7 @@ public class SortedPartitionRanges { public final List> sortedPartitions; public final List> defaultPartitions; + /** SortedPartitionRanges */ public SortedPartitionRanges( List> sortedPartitions, List> defaultPartitions) { this.sortedPartitions = Utils.fastToImmutableList(