Skip to content

Commit cdd35a8

Browse files
authored
ESQL: Fix MultiClusterSpecIT failing test using :: cast (#119263) (#119282)
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 0815f7a commit cdd35a8

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
@@ -1330,7 +1330,7 @@ emp_no:integer | first_name:keyword
13301330

13311331
equalsNullToUpperFolded
13321332
from employees
1333-
| where to_upper(first_name) == null::keyword
1333+
| where to_upper(first_name) == to_string(null)
13341334
| keep emp_no, first_name
13351335
;
13361336

@@ -1348,7 +1348,7 @@ emp_no:integer | first_name:keyword
13481348

13491349
notEqualsNullToUpperFolded
13501350
from employees
1351-
| where to_upper(first_name) != null::keyword
1351+
| where to_upper(first_name) != to_string(null)
13521352
| keep emp_no, first_name
13531353
;
13541354

0 commit comments

Comments
 (0)