Skip to content

Commit 51b148e

Browse files
ES|QL: Fix failing tests due to date warnings (#113376)
New warnings like ``` Date format [MMMM] contains textual field specifiers that could change in JDK 23 ``` Fixes: #113293 Fixes: #113294 Fixes: #113295 Fixes: #113296 Fixes: #113298 Fixes: #113299 Fixes: #113301
1 parent 7d5445c commit 51b148e

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

muted-tests.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -265,20 +265,6 @@ tests:
265265
- class: org.elasticsearch.xpack.security.authz.SecurityScrollTests
266266
method: testSearchAndClearScroll
267267
issue: https://github.com/elastic/elasticsearch/issues/113285
268-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
269-
method: test {date.EvalDateFormatString SYNC}
270-
issue: https://github.com/elastic/elasticsearch/issues/113293
271-
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
272-
method: test {date.EvalDateFormat}
273-
issue: https://github.com/elastic/elasticsearch/issues/113294
274-
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
275-
method: test {date.DocsDateFormat}
276-
issue: https://github.com/elastic/elasticsearch/issues/113295
277-
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
278-
method: test {stats.DocsStatsGroupByMultipleValues}
279-
issue: https://github.com/elastic/elasticsearch/issues/113296
280-
- class: org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
281-
issue: https://github.com/elastic/elasticsearch/issues/113298
282268
- class: org.elasticsearch.integration.KibanaUserRoleIntegTests
283269
method: testGetIndex
284270
issue: https://github.com/elastic/elasticsearch/issues/113311

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ emp_no:integer | x:date
4646

4747
evalDateFormat
4848
from employees | sort hire_date | eval x = date_format(hire_date), y = date_format("YYYY-MM-dd", hire_date) | keep emp_no, x, y | limit 5;
49+
warningRegex:Date format \[YYYY\-MM\-dd\] contains week-date field specifiers that are changing in JDK 23
4950

5051
emp_no:integer | x:keyword | y:keyword
5152
10009 | 1985-02-18T00:00:00.000Z | 1985-02-18
@@ -961,6 +962,7 @@ FROM employees
961962
| SORT first_name
962963
| LIMIT 3
963964
;
965+
warningRegex:Date format \[YYYY\-MM\-dd\] contains week-date field specifiers that are changing in JDK 23
964966

965967
// tag::docsDateFormat-result[]
966968
first_name:keyword | last_name:keyword | hire_date:date | hired:keyword
@@ -976,6 +978,7 @@ required_capability: string_literal_auto_casting
976978
ROW a = 1
977979
| EVAL df = DATE_FORMAT("YYYY-MM-dd", "1989-06-02T00:00:00.000Z")
978980
;
981+
warningRegex:Date format \[YYYY\-MM\-dd\] contains week-date field specifiers that are changing in JDK 23
979982

980983
a:integer | df:keyword
981984
1 | 1989-06-02

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ FROM employees
11831183
// end::statsGroupByMultipleValues[]
11841184
| LIMIT 4
11851185
;
1186+
warningRegex:Date format \[YYYY\] contains week-date field specifiers that are changing in JDK 23
11861187

11871188
hired:keyword |languages.long:long | avg_salary:double
11881189
1985 |1 |54668.0

0 commit comments

Comments
 (0)