Skip to content

Commit

Permalink
Add capabilities to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Dec 12, 2024
1 parent c91cf7c commit 47be335
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ book_no:keyword | title:text

matchWithDisjunction
required_capability: match_function
required_capability: full_text_functions_disjunctions

from books
| where match(author, "Vonnegut") or match(author, "Guinane")
Expand All @@ -133,6 +134,7 @@ book_no:keyword | author:text

matchWithDisjunctionAndFiltersConjunction
required_capability: match_function
required_capability: full_text_functions_disjunctions

from books
| where (match(author, "Vonnegut") or match(author, "Guinane")) and year > 1997
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ book_no:keyword | title:text


matchWithDisjunction
required_capability: match_operator
required_capability: match_operator_colon
required_capability: full_text_functions_disjunctions

from books
| where author : "Vonnegut" or author : "Guinane"
Expand All @@ -120,7 +121,8 @@ book_no:keyword | author:text
;

matchWithDisjunctionAndFiltersConjunction
required_capability: match_operator
required_capability: match_operator_colon
required_capability: full_text_functions_disjunctions

from books
| where (author : "Vonnegut" or author : "Guinane") and year > 1997
Expand All @@ -133,7 +135,7 @@ book_no:keyword | author:text | year:integer
;

matchWithDisjunctionAndConjunction
required_capability: match_operator
required_capability: match_operator_colon
required_capability: full_text_functions_disjunctions

from books
Expand All @@ -145,7 +147,7 @@ book_no:keyword
;

matchWithDisjunctionIncludingConjunction
required_capability: match_operator
required_capability: match_operator_colon
required_capability: full_text_functions_disjunctions

from books
Expand Down Expand Up @@ -278,7 +280,7 @@ count(*): long | author.keyword:keyword
;

testMatchBooleanField
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -294,7 +296,7 @@ Amabile | true | 2.09
;

testMatchIntegerField
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -306,7 +308,7 @@ emp_no:integer | first_name:keyword
;

testMatchDoubleField
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -318,7 +320,7 @@ emp_no:integer | salary_change:double
;

testMatchLongField
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from date_nanos
Expand All @@ -330,7 +332,7 @@ num:long
;

testMatchUnsignedLongField
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from ul_logs
Expand All @@ -342,7 +344,7 @@ bytes_out:unsigned_long
;

testMatchIpFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from sample_data
Expand All @@ -354,7 +356,7 @@ client_ip:ip | message:keyword
;

testMatchDateFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from date_nanos
Expand All @@ -366,7 +368,7 @@ millis:date
;

testMatchDateNanosFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from date_nanos
Expand All @@ -378,7 +380,7 @@ nanos:date_nanos
;

testMatchBooleanFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -394,7 +396,7 @@ Amabile | true | 2.09
;

testMatchIntegerFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -406,7 +408,7 @@ emp_no:integer | first_name:keyword
;

testMatchDoubleFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -418,7 +420,7 @@ emp_no:integer | salary_change:double
;

testMatchLongFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from date_nanos
Expand All @@ -430,7 +432,7 @@ num:long
;

testMatchUnsignedLongFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from ul_logs
Expand All @@ -442,7 +444,7 @@ bytes_out:unsigned_long
;

testMatchVersionFieldAsString
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from apps
Expand All @@ -454,7 +456,7 @@ bbbbb | 2.1
;

testMatchIntegerAsDouble
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -467,7 +469,7 @@ emp_no:integer | first_name:keyword
;

testMatchDoubleAsIntegerField
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees
Expand All @@ -482,7 +484,7 @@ emp_no:integer | height:double
;

testMatchMultipleFieldTypes
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand All @@ -499,7 +501,7 @@ emp_as_int:integer | name_as_kw:keyword


testMatchMultipleFieldTypesKeywordText
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand All @@ -514,7 +516,7 @@ Kazuhito
;

testMatchMultipleFieldTypesDoubleFloat
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand All @@ -533,7 +535,7 @@ emp_no:integer | height_dbl:double
;

testMatchMultipleFieldTypesBooleanKeyword
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand All @@ -550,7 +552,7 @@ true
;

testMatchMultipleFieldTypesLongUnsignedLong
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand All @@ -565,7 +567,7 @@ avg_worked_seconds_ul:unsigned_long
;

testMatchMultipleFieldTypesDateNanosDate
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand All @@ -580,7 +582,7 @@ hire_date_nanos:date_nanos
;

testMatchWithWrongFieldValue
required_capability: match_operator
required_capability: match_operator_colon
required_capability: match_additional_types

from employees,employees_incompatible
Expand Down

0 comments on commit 47be335

Please sign in to comment.