Skip to content

Commit c190c57

Browse files
authored
ESQL: Add tests for single count with filter (#117180)
Test that filters work on sigle count(...) with no group. Related #115522
1 parent 21f206b commit c190c57

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/resources/stats.csv-spec

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,6 +2642,26 @@ c2:l |c2_f:l |m2:i |m2_f:i |c:l
26422642
1 |1 |5 |5 |21
26432643
;
26442644

2645+
simpleCountOnFieldWithFilteringAndNoGrouping
2646+
required_capability: per_agg_filtering
2647+
from employees
2648+
| stats c1 = count(emp_no) where emp_no < 10042
2649+
;
2650+
2651+
c1:long
2652+
41
2653+
;
2654+
2655+
simpleCountOnStarWithFilteringAndNoGrouping
2656+
required_capability: per_agg_filtering
2657+
from employees
2658+
| stats c1 = count(*) where emp_no < 10042
2659+
;
2660+
2661+
c1:long
2662+
41
2663+
;
2664+
26452665
commonFilterExtractionWithAliasing
26462666
required_capability: per_agg_filtering
26472667
from employees

0 commit comments

Comments
 (0)