Skip to content

Commit 4aeae7c

Browse files
authored
ESQL: Fix MultiClusterSpecIT failing test using :: cast (#119263)
Fixes #119254 Fixes #119255 The `x::<type>` 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.
1 parent db1c41b commit 4aeae7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ emp_no:integer | first_name:keyword
13171317

13181318
equalsNullToUpperFolded
13191319
from employees
1320-
| where to_upper(first_name) == null::keyword
1320+
| where to_upper(first_name) == to_string(null)
13211321
| keep emp_no, first_name
13221322
;
13231323

@@ -1335,7 +1335,7 @@ emp_no:integer | first_name:keyword
13351335

13361336
notEqualsNullToUpperFolded
13371337
from employees
1338-
| where to_upper(first_name) != null::keyword
1338+
| where to_upper(first_name) != to_string(null)
13391339
| keep emp_no, first_name
13401340
;
13411341

0 commit comments

Comments
 (0)