Skip to content

Commit 191e710

Browse files
committed
Add CSV tests
1 parent 60221ba commit 191e710

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,20 @@ book_no:keyword
158158
4814
159159
;
160160

161+
matchWithMoreComplexDisjunctionAndConjunction
162+
required_capability: match_function
163+
required_capability: full_text_functions_disjunctions
164+
165+
from books
166+
| where (match(author, "Vonnegut") and match(description, "charming")) or (match(author, "Marquez") and match(description, "realism"))
167+
| keep book_no;
168+
ignoreOrder:true
169+
170+
book_no:keyword
171+
6970
172+
4814
173+
;
174+
161175
matchWithDisjunctionIncludingConjunction
162176
required_capability: match_function
163177
required_capability: full_text_functions_disjunctions

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,20 @@ book_no:keyword
146146
4814
147147
;
148148

149+
matchWithMoreComplexDisjunctionAndConjunction
150+
required_capability: match_function
151+
required_capability: full_text_functions_disjunctions
152+
153+
from books
154+
| where (author : "Vonnegut" and description : "charming") or (author : "Marquez" and description : "realism")
155+
| keep book_no;
156+
ignoreOrder:true
157+
158+
book_no:keyword
159+
6970
160+
4814
161+
;
162+
149163
matchWithDisjunctionIncludingConjunction
150164
required_capability: match_operator_colon
151165
required_capability: full_text_functions_disjunctions

0 commit comments

Comments
 (0)