Skip to content

Commit 1d2697e

Browse files
[CI] Auto commit changes from spotless
1 parent 8ef9b0d commit 1d2697e

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/SampleBooleanAggregator.java

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/SampleBytesRefAggregator.java

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/SampleDoubleAggregator.java

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/SampleIntAggregator.java

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/aggregation/SampleLongAggregatorFunctionTests.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,17 @@ public void testDistribution() {
5757
// Sample from the numbers 0...99.
5858
int N = 100;
5959
Aggregator.Factory aggregatorFactory = aggregatorFunction().aggregatorFactory(AggregatorMode.SINGLE, List.of(0));
60-
AggregationOperator.AggregationOperatorFactory operatorFactory =
61-
new AggregationOperator.AggregationOperatorFactory(List.of(aggregatorFactory), AggregatorMode.SINGLE);
60+
AggregationOperator.AggregationOperatorFactory operatorFactory = new AggregationOperator.AggregationOperatorFactory(
61+
List.of(aggregatorFactory),
62+
AggregatorMode.SINGLE
63+
);
6264

6365
// Repeat 1000x, count how often each number is sampled.
6466
int[] sampledCounts = new int[N];
6567
for (int iteration = 0; iteration < 1000; iteration++) {
66-
List<Page> input = CannedSourceOperator.collectPages(new SequenceLongBlockSourceOperator(
67-
driverContext().blockFactory(),
68-
LongStream.range(0, N)
69-
));
68+
List<Page> input = CannedSourceOperator.collectPages(
69+
new SequenceLongBlockSourceOperator(driverContext().blockFactory(), LongStream.range(0, N))
70+
);
7071
List<Page> results = drive(operatorFactory.get(driverContext()), input.iterator(), driverContext());
7172
for (Page page : results) {
7273
LongBlock block = page.getBlock(0);

0 commit comments

Comments
 (0)