Skip to content

Commit 6c05d0f

Browse files
committed
Merge remote-tracking branch 'romseygeek/benchmark/main-enabled-skippers' into benchmark/main-enabled-skippers
2 parents a335ad3 + 125638e commit 6c05d0f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

server/src/main/java/org/elasticsearch/search/aggregations/support/CoreValuesSourceType.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,10 @@ public Function<Rounding, Rounding.Prepared> roundingPreparer(AggregationContext
317317
}
318318
} else if (dft.hasDocValuesSkipper()) {
319319
log.trace("Attempting to apply skipper-based data rounding");
320-
range[0] = dft.resolution().roundDownToMillis(DocValuesSkipper.globalMinValue(context.searcher(), fieldContext.field()));
321-
range[1] = dft.resolution().roundDownToMillis(DocValuesSkipper.globalMaxValue(context.searcher(), fieldContext.field()));
320+
range[0] = dft.resolution()
321+
.roundDownToMillis(DocValuesSkipper.globalMinValue(context.searcher(), fieldContext.field()));
322+
range[1] = dft.resolution()
323+
.roundDownToMillis(DocValuesSkipper.globalMaxValue(context.searcher(), fieldContext.field()));
322324
}
323325
log.trace("Bounds after index bound date rounding: {}, {}", range[0], range[1]);
324326

server/src/main/java/org/elasticsearch/search/aggregations/support/ValuesSourceConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public Function<byte[], Number> getPointReaderOrNull() {
429429
* is searchable and there aren't missing values or a script to confuse
430430
* the ordering.
431431
*/
432-
public boolean alignsWithSearchIndex() {
432+
public boolean alignsWithSearchIndex() {
433433
boolean hasDocValuesSkipper = fieldType() instanceof DateFieldMapper.DateFieldType dft && dft.hasDocValuesSkipper();
434434
return script() == null
435435
&& missing() == null

0 commit comments

Comments
 (0)