Skip to content

Commit

Permalink
Update regexes for the deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoop committed Sep 27, 2024
1 parent a34e9fc commit 9f7bb1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
"Test Index and Search locale dependent mappings / dates":
- requires:
test_runner_features: ["allowed_warnings"]
test_runner_features: ["allowed_warnings-regex"]
- do:
allowed_warnings:
- "Date format [E, d MMM yyyy HH:mm:ss Z] contains textual field specifiers that could change in JDK 23"
- "Date format \\[E, d MMM yyyy HH:mm:ss Z] contains textual field specifiers that could change in JDK 23.*"
indices.create:
index: test_index
body:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ emp_no:integer | year:long | month:long | day:long
dateFormatLocale
from employees | where emp_no == 10049 or emp_no == 10050 | sort emp_no
| eval birth_month = date_format("MMMM", birth_date) | keep emp_no, birth_date, birth_month;
warningRegex:Date format \[MMMM\] contains textual field specifiers that could change in JDK 23
warningRegex:Date format \[MMMM\] contains textual field specifiers that could change in JDK 23.*
ignoreOrder:true

emp_no:integer | birth_date:datetime | birth_month:keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setup:
- do:
allowed_warnings_regex:
- "No limit defined, adding default limit of \\[.*\\]"
- "Date format \\[MMMM\\] contains textual field specifiers that could change in JDK 23"
- "Date format \\[MMMM\\] contains textual field specifiers that could change in JDK 23.*"
esql.query:
body:
query: 'FROM events | eval fixed_format = date_format("MMMM", @timestamp), variable_format = date_format(format, @timestamp) | sort @timestamp | keep @timestamp, fixed_format, variable_format'
Expand All @@ -51,7 +51,7 @@ setup:
- do:
allowed_warnings_regex:
- "No limit defined, adding default limit of \\[.*\\]"
- "Date format \\[MMMM\\] contains textual field specifiers that could change in JDK 23"
- "Date format \\[MMMM\\] contains textual field specifiers that could change in JDK 23.*"
esql.query:
body:
query: 'FROM events | eval fixed_format = date_format("MMMM", @timestamp), variable_format = date_format(format, @timestamp) | sort @timestamp | keep @timestamp, fixed_format, variable_format'
Expand Down

0 comments on commit 9f7bb1a

Please sign in to comment.