pirvtech commented on code in PR #19138:
URL: https://github.com/apache/druid/pull/19138#discussion_r3197042308
##########
processing/src/main/java/org/apache/druid/timeline/VersionedIntervalTimeline.java:
##########
@@ -747,21 +795,38 @@ private List<TimelineObjectHolder<VersionType,
ObjectType>> lookup(Interval inte
timeline = completePartitionsTimeline;
}
- for (Entry<Interval, TimelineEntry> entry : timeline.entrySet()) {
- Interval timelineInterval = entry.getKey();
- TimelineEntry val = entry.getValue();
-
- // exclude empty partition holders (i.e. tombstones) since they do not
add value
- // for higher level code...they have no data rows...
- if ((!skipObjectsWithNoData || val.partitionHolder.hasData()) &&
timelineInterval.overlaps(interval)) {
- retVal.add(
- new TimelineObjectHolder<>(
- timelineInterval,
- val.getTrueInterval(),
- val.getVersion(),
-
PartitionHolder.copyWithOnlyVisibleChunks(val.getPartitionHolder())
- )
- );
+ if (fastIntervalSearch) {
Review Comment:
Parameterized the tests to exercise fastIntervalSearch true as well
--
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]