Skip to content

Commit 52c6acb

Browse files
committed
Lint.
1 parent adfb565 commit 52c6acb

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5571,7 +5571,7 @@ record PushdownShadowingGeneratingPlanTestCase(
55715571
new ReferenceAttribute(EMPTY, "y", KEYWORD)
55725572
),
55735573
new PushDownCompletion()
5574-
)};
5574+
) };
55755575

55765576
/**
55775577
* Consider

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/PushDownAndCombineFiltersTests.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,23 @@ public void testPushDownFilterPastCompletion() {
250250
FieldAttribute b = getFieldAttribute("b");
251251
EsRelation relation = relation(List.of(a, b));
252252

253-
GreaterThan conditionA = greaterThanOf(getFieldAttribute("a"), ONE);
253+
GreaterThan conditionA = greaterThanOf(getFieldAttribute("a"), ONE);
254254
Filter filterA = new Filter(EMPTY, relation, conditionA);
255255

256256
Completion completion = completion(filterA);
257257

258258
LessThan conditionB = lessThanOf(getFieldAttribute("b"), TWO);
259-
Match conditionCompletion = new Match(EMPTY, completion.targetField(), randomLiteral(DataType.TEXT), mock(Expression.class), mock(QueryBuilder.class));
259+
Match conditionCompletion = new Match(
260+
EMPTY,
261+
completion.targetField(),
262+
randomLiteral(DataType.TEXT),
263+
mock(Expression.class),
264+
mock(QueryBuilder.class)
265+
);
260266
Filter filterB = new Filter(EMPTY, completion, new And(EMPTY, conditionB, conditionCompletion));
261267

262-
LogicalPlan expectedOptimizedPlan = new Filter(EMPTY,
268+
LogicalPlan expectedOptimizedPlan = new Filter(
269+
EMPTY,
263270
new Completion(
264271
EMPTY,
265272
new Filter(EMPTY, relation, new And(EMPTY, conditionA, conditionB)),
@@ -274,10 +281,15 @@ public void testPushDownFilterPastCompletion() {
274281
}
275282

276283
private static Completion completion(LogicalPlan child) {
277-
return new Completion(EMPTY, child, randomLiteral(DataType.TEXT), randomLiteral(DataType.TEXT), referenceAttribute(randomIdentifier(), DataType.TEXT));
284+
return new Completion(
285+
EMPTY,
286+
child,
287+
randomLiteral(DataType.TEXT),
288+
randomLiteral(DataType.TEXT),
289+
referenceAttribute(randomIdentifier(), DataType.TEXT)
290+
);
278291
}
279292

280-
281293
private static EsRelation relation() {
282294
return relation(List.of());
283295
}

0 commit comments

Comments
 (0)