eldenmoon commented on code in PR #39468:
URL: https://github.com/apache/doris/pull/39468#discussion_r1746509581
##########
fe/fe-core/src/main/java/org/apache/doris/planner/RangePartitionPrunerV2.java:
##########
@@ -154,8 +184,37 @@ private Collection<Long> doPruneMulti(Map<Column,
FinalFilters> columnToFilters,
&& filter.hasUpperBound() &&
filter.upperBoundType() == BoundType.CLOSED
&& filter.lowerEndpoint() ==
filter.upperEndpoint()) {
// Equal to predicate, e.g., col=1, the filter range
is [1, 1].
- minKey.pushColumn(filter.lowerEndpoint().getValue(),
column.getDataType());
- maxKey.pushColumn(filter.upperEndpoint().getValue(),
column.getDataType());
+ ColumnBound lowerFilter = filter.lowerEndpoint();
+ ColumnBound upperFilter = filter.upperEndpoint();
+ minKey.pushColumn(lowerFilter.getValue(),
column.getDataType());
+ maxKey.pushColumn(upperFilter.getValue(),
column.getDataType());
+
+ List<Long> partID = Lists.newArrayList();
+ for (Map.Entry<Range<PartitionKey>, Long>
rangeMapEntry : rangeMap.asMapOfRanges().entrySet()) {
Review Comment:
add comment
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]