File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments