Skip to content

Commit 15357ae

Browse files
committed
More csv tests
1 parent 563bc59 commit 15357ae

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

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

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,4 +910,61 @@ emp_no:integer |languages:integer|last_name:keyword|max_lang:integer|min_lang:in
910910
10049 |5 |Tramer |5 |5 |T |F
911911
10028 |null |Tempesti |1 |1 |T |M
912912
;
913+
914+
doubleFilterOnLeftAndRight_InlineStats_Sides
915+
required_capability: inlinestats_v6
913916

917+
FROM employees
918+
| INLINESTATS max_salary = MAX(salary), min_salary = MIN(salary) by languages
919+
| KEEP emp_no, languages, *salary
920+
| WHERE salary > 65000 and languages > 2
921+
;
922+
923+
emp_no:integer |languages:integer|salary:integer |max_salary:integer|min_salary:integer
924+
10007 |4 |74572 |74572 |27215
925+
10030 |3 |67492 |74970 |26436
926+
10045 |3 |74970 |74970 |26436
927+
10054 |4 |65367 |74572 |27215
928+
10062 |3 |65030 |74970 |26436
929+
10094 |5 |66817 |66817 |25324
930+
10097 |3 |71165 |74970 |26436
931+
10100 |4 |68431 |74572 |27215
932+
;
933+
934+
filterOnInlineStatsAggs
935+
required_capability: inlinestats_v6
936+
937+
FROM employees
938+
| INLINESTATS max_salary = MAX(salary), min_salary = MIN(salary) by languages
939+
| KEEP emp_no, languages, *salary
940+
| WHERE min_salary > 27000 or max_salary < 70000
941+
| limit 5
942+
| sort salary
943+
;
944+
945+
emp_no:integer |languages:integer|salary:integer |max_salary:integer|min_salary:integer
946+
10004 |5 |36174 |66817 |25324
947+
10002 |5 |56371 |66817 |25324
948+
10001 |2 |57305 |73578 |29175
949+
10003 |4 |61805 |74572 |27215
950+
10007 |4 |74572 |74572 |27215
951+
;
952+
953+
filterOnInlineStatsAggsValues_And_Groupings
954+
required_capability: inlinestats_v6
955+
956+
FROM employees
957+
| INLINESTATS max_salary = MAX(salary), min_salary = MIN(salary) by languages
958+
| KEEP emp_no, languages, *salary
959+
| WHERE (min_salary > 27000 or max_salary < 70000) and languages > 3
960+
| limit 5
961+
| sort salary
962+
;
963+
964+
emp_no:integer |languages:integer|salary:integer |max_salary:integer|min_salary:integer
965+
10004 |5 |36174 |66817 |25324
966+
10010 |4 |45797 |74572 |27215
967+
10002 |5 |56371 |66817 |25324
968+
10003 |4 |61805 |74572 |27215
969+
10007 |4 |74572 |74572 |27215
970+
;

0 commit comments

Comments
 (0)