Skip to content

Commit 8cfca3c

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 6626682 commit 8cfca3c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/grouping/TBucketTests.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,16 @@ protected boolean canSerialize() {
144144
return false;
145145
}
146146

147-
// TODO: With this method commented the V3Doc fails
148-
// public static List<DataType> signatureTypes(List<DataType> testCaseTypes) {
149-
// // DATE_PERIOD, DATETIME
150-
// // DATE_PERIOD, DATE_NANOS
151-
//
152-
// // TIME_DURATION, DATETIME
153-
// // TIME_DURATION, DATE_NANOS
154-
//
155-
// assertThat(testCaseTypes, hasSize(2));
156-
// // assertThat(testCaseTypes.get(1), anyOf(equalTo(DataType.DATE_NANOS), equalTo(DataType.DATETIME)));
157-
// return List.of(testCaseTypes.get(0), testCaseTypes.get(1));
158-
// }
147+
// TODO: With this method commented the V3Doc fails
148+
// public static List<DataType> signatureTypes(List<DataType> testCaseTypes) {
149+
// // DATE_PERIOD, DATETIME
150+
// // DATE_PERIOD, DATE_NANOS
151+
//
152+
// // TIME_DURATION, DATETIME
153+
// // TIME_DURATION, DATE_NANOS
154+
//
155+
// assertThat(testCaseTypes, hasSize(2));
156+
// // assertThat(testCaseTypes.get(1), anyOf(equalTo(DataType.DATE_NANOS), equalTo(DataType.DATETIME)));
157+
// return List.of(testCaseTypes.get(0), testCaseTypes.get(1));
158+
// }
159159
}

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LogicalPlanOptimizerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8164,8 +8164,8 @@ public void testTranslateDataGroupedByTBucket() {
81648164
Bucket bucket = as(Alias.unwrap(bucketAlias), Bucket.class);
81658165
assertThat(Expressions.attribute(bucket.field()).name(), equalTo("@timestamp"));
81668166
assertThat(bucket.children().get(0), instanceOf(FieldAttribute.class));
8167-
assertThat(((FieldAttribute)bucket.children().get(0)).name(), equalTo("@timestamp"));
8167+
assertThat(((FieldAttribute) bucket.children().get(0)).name(), equalTo("@timestamp"));
81688168
assertThat(bucket.children().get(1), instanceOf(Literal.class));
8169-
assertThat(((Literal)bucket.children().get(1)).value(), equalTo(Duration.ofHours(1)));
8169+
assertThat(((Literal) bucket.children().get(1)).value(), equalTo(Duration.ofHours(1)));
81708170
}
81718171
}

0 commit comments

Comments
 (0)