feiniaofeiafei commented on code in PR #44586: URL: https://github.com/apache/doris/pull/44586#discussion_r1866997179
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/PartitionPruner.java: ########## @@ -134,39 +143,111 @@ public static <K> List<K> prune(List<Slot> partitionSlots, Expression partitionP return ImmutableList.of(); } - List<OnePartitionEvaluator> evaluators = Lists.newArrayListWithCapacity(idToPartitions.size()); - for (Entry<K, PartitionItem> kv : idToPartitions.entrySet()) { - evaluators.add(toPartitionEvaluator( - kv.getKey(), kv.getValue(), partitionSlots, cascadesContext, expandThreshold)); + if (sortedPartitionRanges != null) { + RangeSet<MultiColumnBound> predicateRanges = partitionPredicate.accept( + new PartitionPredicateToRange(partitionSlots), null); Review Comment: dt<'2020-02-01' will compute a empty predicateRanges, left bound is closed and right bound is open. e.g.['2020-02-01','2020-02-01') -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org