From 5d52a5bf40a9e56611836dfc0d2456aaa8cc7de6 Mon Sep 17 00:00:00 2001 From: "ievgen.degtiarenko" Date: Thu, 3 Apr 2025 16:10:58 +0200 Subject: [PATCH] Declare required capability for date tests --- .../testFixtures/src/main/resources/date.csv-spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/date.csv-spec b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/date.csv-spec index 34a42695feacf..e48449d9062f3 100644 --- a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/date.csv-spec +++ b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/date.csv-spec @@ -1479,7 +1479,7 @@ cnt:long ; implicit casting strings to dates for IN operator -required_capability: string_literal_auto_casting +required_capability: rangequery_for_datetime FROM employees | WHERE birth_date IN ("1953-04-20", "1958-10-31") | KEEP emp_no, first_name; @@ -1490,8 +1490,8 @@ emp_no:integer | first_name:keyword 10025 | Prasadram ; -IN operator with null in list, finds match#[skip:-8.13.99, reason: default date formatter is changed in 8.14] - +IN operator with null in list, finds match +required_capability: rangequery_for_datetime FROM employees | EVAL x = NULL | WHERE birth_date IN (TO_DATETIME("1958-02-19T00:00:00Z"), x) @@ -1501,8 +1501,8 @@ birth_date:datetime | first_name:keyword 1958-02-19T00:00:00.000Z | Saniya ; -IN operator with null in list, doesn't find match#[skip:-8.13.99, reason: default date formatter is changed in 8.14] - +IN operator with null in list, doesn't find match +required_capability: rangequery_for_datetime FROM employees | EVAL x = NULL | WHERE birth_date IN (TO_DATETIME("1900-02-19T00:00:00Z"), x) @@ -1511,8 +1511,8 @@ FROM employees birth_date:datetime | first_name:keyword ; -IN operator with null in list, doesn't find match, EVAL to check value#[skip:-8.13.99, reason: default date formatter is changed in 8.14] - +IN operator with null in list, doesn't find match, EVAL to check value +required_capability: rangequery_for_datetime FROM employees | EVAL x = NULL | EVAL result = birth_date IN (TO_DATETIME("1900-02-19T00:00:00Z"), x)