Skip to content

Commit

Permalink
ESQL: Fix MultiClusterSpecIT failing test using :: cast (#119263)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivancea authored Dec 26, 2024
1 parent db1c41b commit 4aeae7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
;

Expand All @@ -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
;

Expand Down

0 comments on commit 4aeae7c

Please sign in to comment.