Skip to content

Commit e89c613

Browse files
authored
ESQL: Make the DocsMultiAggsMultiGroupings test deterministic (#135197)
1 parent fe4c41e commit e89c613

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

docs/reference/query-languages/esql/_snippets/commands/examples/inlinestats.csv-spec/multi-agg-multi-grouping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
FROM employees
55
| WHERE still_hired
66
| KEEP emp_no, languages, salary, hire_date
7-
| EVAL tenure = DATE_DIFF("year", hire_date, now())
7+
| EVAL tenure = DATE_DIFF("year", hire_date, "2025-09-18T00:00:00")
88
| DROP hire_date
99
| INLINE STATS avg_salary = AVG(salary), count = count(*) BY languages, tenure
1010
```

muted-tests.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -591,24 +591,6 @@ tests:
591591
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
592592
method: test {csv-spec:fork.ForkWithStats}
593593
issue: https://github.com/elastic/elasticsearch/issues/135116
594-
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeForkIT
595-
method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
596-
issue: https://github.com/elastic/elasticsearch/issues/135117
597-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
598-
method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
599-
issue: https://github.com/elastic/elasticsearch/issues/135119
600-
- class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT
601-
method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
602-
issue: https://github.com/elastic/elasticsearch/issues/135118
603-
- class: org.elasticsearch.xpack.esql.qa.single_node.EsqlSpecIT
604-
method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
605-
issue: https://github.com/elastic/elasticsearch/issues/135118
606-
- class: org.elasticsearch.xpack.esql.CsvTests
607-
method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
608-
issue: https://github.com/elastic/elasticsearch/issues/135120
609-
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
610-
method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
611-
issue: https://github.com/elastic/elasticsearch/issues/135121
612594
- class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackIT
613595
method: testLookupExplosionBigString
614596
issue: https://github.com/elastic/elasticsearch/issues/135122

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ required_capability: inline_stats
9191
FROM employees
9292
| WHERE still_hired
9393
| KEEP emp_no, languages, salary, hire_date
94-
| EVAL tenure = DATE_DIFF("year", hire_date, now())
94+
| EVAL tenure = DATE_DIFF("year", hire_date, "2025-09-18T00:00:00")
9595
| DROP hire_date
9696
| INLINE STATS avg_salary = AVG(salary), count = count(*) BY languages, tenure
9797
// end::multi-agg-multi-grouping[]

0 commit comments

Comments
 (0)