Skip to content

Commit a6e1f91

Browse files
Address more code review comments
1 parent c063010 commit a6e1f91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,10 @@ public void testReplaceStatsFilteredAggWithEvalNotFalse() {
714714
""");
715715
var limit = as(plan, Limit.class);
716716
var aggregate = as(limit.child(), Aggregate.class);
717+
assertEquals(1, aggregate.aggregates().size());
718+
assertEquals(1, aggregate.aggregates().get(0).children().size());
719+
assertTrue(aggregate.aggregates().get(0).children().get(0) instanceof Count);
720+
assertEquals("true", (((Count) aggregate.aggregates().get(0).children().get(0)).filter().toString()));
717721
assertThat(Expressions.names(aggregate.aggregates()), contains("m1"));
718722
var source = as(aggregate.child(), EsRelation.class);
719723
}

0 commit comments

Comments
 (0)