Skip to content

Commit bdf724b

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 224d95c commit bdf724b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Bucket.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package org.elasticsearch.xpack.esql.expression.function.grouping;
99

1010
import org.apache.lucene.util.BytesRef;
11-
import org.elasticsearch.TransportVersions;
1211
import org.elasticsearch.common.Rounding;
1312
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
1413
import org.elasticsearch.common.io.stream.StreamInput;

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/local/ReplaceDateTruncBucketWithRoundTo.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,15 @@ private Expression substitute(Expression e, Eval eval, SearchStats searchStats)
8383
bucket.buckets(),
8484
searchStats,
8585
eval,
86-
(interval, minValue, maxValue) -> Bucket.getDateRounding(bucket.field(), bucket.buckets(), bucket.from(), bucket.to(), FoldContext.small(), minValue, maxValue)
86+
(interval, minValue, maxValue) -> Bucket.getDateRounding(
87+
bucket.field(),
88+
bucket.buckets(),
89+
bucket.from(),
90+
bucket.to(),
91+
FoldContext.small(),
92+
minValue,
93+
maxValue
94+
)
8795
);
8896
}
8997
return roundTo != null ? roundTo : e;

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/aggregate/FirstDocIdGroupingAggregatorFunctionTests.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,7 @@ public void testSimple() {
7777
HashAggregationOperator hashAggregationOperator = new HashAggregationOperator(
7878
groupSpecs,
7979
List.of(aggregatorFactory),
80-
() -> BlockHash.build(
81-
groupSpecs,
82-
driverContext.blockFactory(),
83-
randomIntBetween(1, 1024),
84-
randomBoolean()
85-
),
80+
() -> BlockHash.build(groupSpecs, driverContext.blockFactory(), randomIntBetween(1, 1024), randomBoolean()),
8681
driverContext
8782
);
8883
List<Page> outputPages = new ArrayList<>();

0 commit comments

Comments
 (0)