Skip to content

Commit 46faa07

Browse files
committed
Update csv tests
1 parent b808bba commit 46faa07

File tree

1 file changed

+48
-0
lines changed
  • x-pack/plugin/esql/qa/testFixtures/src/main/resources

1 file changed

+48
-0
lines changed

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,4 +636,52 @@ row foo = "Bar" | where foo rlike "(?i)Ba.*"
636636
foo:keyword
637637
;
638638

639+
evalAfterAvgGroupingUsingSameName
640+
from employees
641+
| stats avg = avg(salary) by gender
642+
| keep avg
643+
| eval avg = 12
644+
;
645+
646+
avg:integer
647+
12
648+
12
649+
12
650+
;
651+
652+
evalAfterGroupingUsingSameName
653+
row foo = [10,11,9], bar = [1,2,3]
654+
| mv_expand foo
655+
| mv_expand bar
656+
| stats this = max(foo) by bar
657+
| keep this
658+
| eval this = 12
659+
;
660+
661+
this:integer
662+
12
663+
12
664+
12
665+
;
666+
667+
evalAfterGroupingUsingSameName2
668+
from employees
669+
| stats count = count(emp_no) by gender, is_rehired
670+
| keep count
671+
| rename count as x
672+
| keep x
673+
| eval x = 12
674+
;
675+
676+
x:integer
677+
12
678+
12
679+
12
680+
12
681+
12
682+
12
683+
12
684+
12
685+
12
686+
;
639687

0 commit comments

Comments
 (0)