浏览代码

Add missing capabilities (#124625)

Ievgen Degtiarenko 7 月之前
父节点
当前提交
79e776a488
共有 1 个文件被更改,包括 13 次插入4 次删除
  1. 13 4
      x-pack/plugin/esql/qa/testFixtures/src/main/resources/string.csv-spec

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

@@ -987,8 +987,8 @@ from hosts
 | keep description
 | keep description
 | sort description;
 | sort description;
 
 
-warning:Line 2:9: evaluation of [starts_with(description, \"epsilon\")] failed, treating result as null. Only first 20 failures recorded.
-warning:Line 2:9: java.lang.IllegalArgumentException: single-value function encountered multi-value
+warningRegex: evaluation of \[starts_with\(description, \\\"epsilon\\\"\)\] failed, treating result as null. Only first 20 failures recorded.
+warningRegex: java.lang.IllegalArgumentException: single-value function encountered multi-value
 
 
 description:text
 description:text
 epsilon gw instance
 epsilon gw instance
@@ -1272,8 +1272,8 @@ from hosts
 | keep description
 | keep description
 | sort description;
 | sort description;
 
 
-warning:Line 2:9: evaluation of [ends_with(description, \"host\")] failed, treating result as null. Only first 20 failures recorded.
-warning:Line 2:9: java.lang.IllegalArgumentException: single-value function encountered multi-value
+warningRegex: evaluation of \[ends_with\(description, \\\"host\\\"\)\] failed, treating result as null. Only first 20 failures recorded.
+warningRegex: java.lang.IllegalArgumentException: single-value function encountered multi-value
 
 
 description:text
 description:text
 ;
 ;
@@ -1294,6 +1294,8 @@ beta         | Kubernetes cluster
 ;
 ;
 
 
 lucenePushdownMultipleIndices
 lucenePushdownMultipleIndices
+required_capability: index_metadata_field
+required_capability: casting_operator
 
 
 from airports* metadata _index
 from airports* metadata _index
 | where starts_with(name::keyword, "Sahn") and ends_with(abbrev, "UH")
 | where starts_with(name::keyword, "Sahn") and ends_with(abbrev, "UH")
@@ -1310,6 +1312,7 @@ LUH            | Sahnewal  | airports_web
 ;
 ;
 
 
 lucenePushdownOr
 lucenePushdownOr
+required_capability: casting_operator
 
 
 from airports
 from airports
 | where starts_with(name::keyword, "Sahn") or ends_with(abbrev, "UH")
 | where starts_with(name::keyword, "Sahn") or ends_with(abbrev, "UH")
@@ -1323,6 +1326,7 @@ RUH            | King Khalid Int'l
 ;
 ;
 
 
 lucenePushdownMultipleOr
 lucenePushdownMultipleOr
+required_capability: casting_operator
 
 
 from airports
 from airports
 | where starts_with(name::keyword, "Sahn") or ends_with(abbrev, "UH") or starts_with(abbrev, "OOL")
 | where starts_with(name::keyword, "Sahn") or ends_with(abbrev, "UH") or starts_with(abbrev, "OOL")
@@ -1337,6 +1341,8 @@ RUH            | King Khalid Int'l
 ;
 ;
 
 
 lucenePushdownMultipleAnd
 lucenePushdownMultipleAnd
+required_capability: index_metadata_field
+required_capability: casting_operator
 
 
 from airports metadata _index
 from airports metadata _index
 | where starts_with(name::keyword, "Sahn") and ends_with(abbrev, "UH")
 | where starts_with(name::keyword, "Sahn") and ends_with(abbrev, "UH")
@@ -1349,6 +1355,7 @@ LUH            | Sahnewal  | airports
 ;
 ;
 
 
 lucenePushdownMixAndOr
 lucenePushdownMixAndOr
+required_capability: casting_operator
 
 
 from airports
 from airports
 | where starts_with(name::keyword, "Sahn") and (starts_with(name::keyword, "Abc") or ends_with(abbrev, "UH"))
 | where starts_with(name::keyword, "Sahn") and (starts_with(name::keyword, "Abc") or ends_with(abbrev, "UH"))
@@ -1360,6 +1367,8 @@ LUH            | Sahnewal  | 9
 ;
 ;
 
 
 lucenePushdownMixOrAnd
 lucenePushdownMixOrAnd
+required_capability: index_metadata_field
+required_capability: casting_operator
 
 
 from airports* metadata _index
 from airports* metadata _index
 | where starts_with(name::keyword, "Sahn") or (starts_with(abbrev, "G") and ends_with(name::keyword, "Falls Int'l"))
 | where starts_with(name::keyword, "Sahn") or (starts_with(abbrev, "G") and ends_with(name::keyword, "Falls Int'l"))