浏览代码

ESQL: Make the DocsMultiAggsMultiGroupings test deterministic (#135197)

Andrei Stefan 2 周之前
父节点
当前提交
e89c613dc3

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

@@ -4,7 +4,7 @@
 FROM employees
 | WHERE still_hired
 | KEEP emp_no, languages, salary, hire_date
-| EVAL tenure = DATE_DIFF("year", hire_date, now())
+| EVAL tenure = DATE_DIFF("year", hire_date, "2025-09-18T00:00:00")
 | DROP hire_date
 | INLINE STATS avg_salary = AVG(salary), count = count(*) BY languages, tenure
 ```

+ 0 - 18
muted-tests.yml

@@ -591,24 +591,6 @@ tests:
 - class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
   method: test {csv-spec:fork.ForkWithStats}
   issue: https://github.com/elastic/elasticsearch/issues/135116
-- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeForkIT
-  method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
-  issue: https://github.com/elastic/elasticsearch/issues/135117
-- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
-  method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
-  issue: https://github.com/elastic/elasticsearch/issues/135119
-- class: org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT
-  method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
-  issue: https://github.com/elastic/elasticsearch/issues/135118
-- class: org.elasticsearch.xpack.esql.qa.single_node.EsqlSpecIT
-  method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
-  issue: https://github.com/elastic/elasticsearch/issues/135118
-- class: org.elasticsearch.xpack.esql.CsvTests
-  method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
-  issue: https://github.com/elastic/elasticsearch/issues/135120
-- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
-  method: test {csv-spec:inlinestats.DocsMultiAggsMultiGroupings}
-  issue: https://github.com/elastic/elasticsearch/issues/135121
 - class: org.elasticsearch.xpack.esql.heap_attack.HeapAttackIT
   method: testLookupExplosionBigString
   issue: https://github.com/elastic/elasticsearch/issues/135122

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

@@ -91,7 +91,7 @@ required_capability: inline_stats
 FROM employees
 | WHERE still_hired
 | KEEP emp_no, languages, salary, hire_date
-| EVAL tenure = DATE_DIFF("year", hire_date, now())
+| EVAL tenure = DATE_DIFF("year", hire_date, "2025-09-18T00:00:00")
 | DROP hire_date
 | INLINE STATS avg_salary = AVG(salary), count = count(*) BY languages, tenure
 // end::multi-agg-multi-grouping[]