Skip to content

Commit 3098af5

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 45ae0e8 commit 3098af5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/RandomizedTimeSeriesIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public void testGroupBySubset() {
438438
assertThat(row.get(4), equalTo(aggregatePerTimeseries(tsGroups, Agg.SUM, Agg.SUM).longValue()));
439439
var avg = aggregatePerTimeseries(tsGroups, Agg.AVG, Agg.AVG);
440440
assertThat((Double) row.get(5), closeTo(avg, avg * 0.01));
441-
// assertThat(row.get(6), equalTo(aggregatePerTimeseries(tsGroups, Agg.COUNT, Agg.COUNT).longValue()));
441+
// assertThat(row.get(6), equalTo(aggregatePerTimeseries(tsGroups, Agg.COUNT, Agg.COUNT).longValue()));
442442
}
443443
}
444444
}
@@ -483,7 +483,7 @@ public void testGroupByNothing() {
483483
assertThat(row.get(4), equalTo(aggregatePerTimeseries(tsGroups, Agg.SUM, Agg.SUM).longValue()));
484484
var avg = aggregatePerTimeseries(tsGroups, Agg.AVG, Agg.AVG);
485485
assertThat((Double) row.get(5), closeTo(avg, avg * 0.01));
486-
// assertThat(row.get(6), equalTo(aggregatePerTimeseries(tsGroups, Agg.COUNT, Agg.COUNT).longValue()));
486+
// assertThat(row.get(6), equalTo(aggregatePerTimeseries(tsGroups, Agg.COUNT, Agg.COUNT).longValue()));
487487
}
488488
}
489489
}

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/TSDataGenerationHelper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
import java.io.IOException;
2626
import java.time.Instant;
27-
import java.util.HashSet;
2827
import java.util.HashMap;
28+
import java.util.HashSet;
2929
import java.util.List;
3030
import java.util.Map;
3131
import java.util.Set;
@@ -75,9 +75,7 @@ private static Object randomDimensionValue(String dimensionName) {
7575
for (int i = 0; i < numDocs; i++) {
7676
// Random timestamps within the last 90 days.
7777
while (true) {
78-
var randomIns = Instant.ofEpochMilli(
79-
ESTestCase.randomLongBetween(timeRangeEnd, timeRangeStart)
80-
);
78+
var randomIns = Instant.ofEpochMilli(ESTestCase.randomLongBetween(timeRangeEnd, timeRangeStart));
8179
if (timestampSet.add(randomIns)) {
8280
break;
8381
}

0 commit comments

Comments
 (0)