From 4aeae7c1f1a8bfaf1cb7f5cfadfa76d3894a5fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Cea=20Fontenla?= Date: Thu, 26 Dec 2024 12:15:59 +0100 Subject: [PATCH] ESQL: Fix MultiClusterSpecIT failing test using :: cast (#119263) Fixes https://github.com/elastic/elasticsearch/issues/119254 Fixes https://github.com/elastic/elasticsearch/issues/119255 The `x::` cast syntax doesn't exist in older versions, so, if the test doesn't require a modern capability, it may fail. I'm fixing this in main instead of 8.x just to avoid future conflicts, and because the cast syntax has nothing to do with the test itself. --- .../esql/qa/testFixtures/src/main/resources/string.csv-spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/string.csv-spec b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/string.csv-spec index 0ecff0e229ef7..d65a0975e22b2 100644 --- a/x-pack/plugin/esql/qa/testFixtures/src/main/resources/string.csv-spec +++ b/x-pack/plugin/esql/qa/testFixtures/src/main/resources/string.csv-spec @@ -1317,7 +1317,7 @@ emp_no:integer | first_name:keyword equalsNullToUpperFolded from employees -| where to_upper(first_name) == null::keyword +| where to_upper(first_name) == to_string(null) | keep emp_no, first_name ; @@ -1335,7 +1335,7 @@ emp_no:integer | first_name:keyword notEqualsNullToUpperFolded from employees -| where to_upper(first_name) != null::keyword +| where to_upper(first_name) != to_string(null) | keep emp_no, first_name ;