1
0
Эх сурвалжийг харах

ESQL: Fix MultiClusterSpecIT failing test using :: cast (#119263) (#119282)

Fixes https://github.com/elastic/elasticsearch/issues/119254
Fixes https://github.com/elastic/elasticsearch/issues/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.
Iván Cea Fontenla 9 сар өмнө
parent
commit
cdd35a8306

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

@@ -1330,7 +1330,7 @@ emp_no:integer  | first_name:keyword
 
 
 equalsNullToUpperFolded
 equalsNullToUpperFolded
 from employees
 from employees
-| where to_upper(first_name) == null::keyword
+| where to_upper(first_name) == to_string(null)
 | keep emp_no, first_name
 | keep emp_no, first_name
 ;
 ;
 
 
@@ -1348,7 +1348,7 @@ emp_no:integer  | first_name:keyword
 
 
 notEqualsNullToUpperFolded
 notEqualsNullToUpperFolded
 from employees
 from employees
-| where to_upper(first_name) != null::keyword
+| where to_upper(first_name) != to_string(null)
 | keep emp_no, first_name
 | keep emp_no, first_name
 ;
 ;