Skip to content

Commit a851d6b

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a631960 commit a851d6b

File tree

1 file changed

+7
-7
lines changed
  • x-pack/plugin/esql/compute/test/src/main/java/org/elasticsearch/compute/test

1 file changed

+7
-7
lines changed

x-pack/plugin/esql/compute/test/src/main/java/org/elasticsearch/compute/test/RandomBlock.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ public static RandomBlock randomBlock(
160160
valuesAtPosition.add(new AggregateMetricDoubleBlockBuilder.AggregateMetricDoubleLiteral(min, max, sum, count));
161161
}
162162
case DATE_RANGE -> {
163-
var b = (DateRangeBlockBuilder)builder;
164-
var from = randomDateTime();
165-
var to = randomDateTime();
166-
b.from().appendLong(from);
167-
b.to().appendLong(to);
168-
valuesAtPosition.add(new DateRangeBlockBuilder.DateRangeLiteral(from, to));
163+
var b = (DateRangeBlockBuilder) builder;
164+
var from = randomDateTime();
165+
var to = randomDateTime();
166+
b.from().appendLong(from);
167+
b.to().appendLong(to);
168+
valuesAtPosition.add(new DateRangeBlockBuilder.DateRangeLiteral(from, to));
169169
}
170170
default -> throw new IllegalArgumentException("unsupported element type [" + elementType + "]");
171171
}
@@ -232,7 +232,7 @@ public RandomBlock merge(RandomBlock rhs) {
232232
}
233233
}
234234

235-
static long randomDateTime () {
235+
static long randomDateTime() {
236236
return Instant.ofEpochSecond(randomLongBetween(0, 3000000000L), randomLongBetween(0, 999999999)).toEpochMilli();
237237
}
238238
}

0 commit comments

Comments
 (0)