clintropolis commented on a change in pull request #8089: add
CachingClusteredClient benchmark, refactor some stuff
URL: https://github.com/apache/incubator-druid/pull/8089#discussion_r304683912
##########
File path:
processing/src/main/java/org/apache/druid/query/timeseries/TimeseriesQueryQueryToolChest.java
##########
@@ -211,6 +194,26 @@ public TimeseriesQueryQueryToolChest(
};
}
+ @Override
+ public CombiningFunction<Result<TimeseriesResultValue>> createMergeFn(
+ Query<Result<TimeseriesResultValue>> query
+ )
+ {
+ TimeseriesQuery timeseriesQuery = (TimeseriesQuery) query;
+ return new TimeseriesBinaryFn(
+ timeseriesQuery.getGranularity(),
+ timeseriesQuery.getAggregatorSpecs()
+ );
+ }
+
+ @Override
+ public Ordering<Result<TimeseriesResultValue>>
createOrderingFn(Query<Result<TimeseriesResultValue>> query)
+ {
+ return ResultGranularTimestampComparator.create(
+ query.getGranularity(), query.isDescending()
Review comment:
This actually fit on one line
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]