@@ -389,7 +389,8 @@ emp_no:integer | name:keyword
389389;
390390
391391
392- contains#[skip:-9.2.99,reason:new string function added in 9.3]
392+ contains
393+ required_capability: fn_contains
393394// tag::contains[]
394395ROW a = "hello"
395396| EVAL has_ll = CONTAINS(a, "ll")
@@ -402,28 +403,32 @@ hello | true
402403// end::contains-result[]
403404;
404405
405- containsFail#[skip:-9.2.99,reason:new string function added in 9.3]
406+ containsFail
407+ required_capability: fn_contains
406408row a = "hello" | eval a_ll = contains(a, "int");
407409
408410a:keyword | a_ll:boolean
409411hello | false
410412;
411413
412- containsLongerSubstr#[skip:-9.2.99,reason:new string function added in 9.3]
414+ containsLongerSubstr
415+ required_capability: fn_contains
413416row a = "hello" | eval a_ll = contains(a, "farewell");
414417
415418a:keyword | a_ll:boolean
416419hello | false
417420;
418421
419- containsSame#[skip:-9.2.99,reason:new string function added in 9.3]
422+ containsSame
423+ required_capability: fn_contains
420424row a = "hello" | eval a_ll = contains(a, "hello");
421425
422426a:keyword | a_ll:boolean
423427hello | true
424428;
425429
426- containsWithSubstring#[skip:-9.2.99,reason:new string function added in 9.3]
430+ containsWithSubstring
431+ required_capability: fn_contains
427432from employees | where emp_no <= 10010 | eval f_s = substring(last_name, 2) | eval f_l = contains(last_name, f_s) | keep emp_no, last_name, f_s, f_l;
428433ignoreOrder:true
429434
@@ -440,28 +445,32 @@ emp_no:integer | last_name:keyword | f_s:keyword | f_l:boolean
44044510010 | Piveteau | iveteau | true
441446;
442447
443- containsUtf16Emoji#[skip:-9.2.99,reason:new string function added in 9.3]
448+ containsUtf16Emoji
449+ required_capability: fn_contains
444450row a = "🐱Meow!🐶Woof!" | eval f_s = substring(a, 2) | eval f_l = contains(a, f_s);
445451
446452a:keyword | f_s:keyword | f_l:boolean
447453🐱Meow!🐶Woof! | Meow!🐶Woof! | true
448454;
449455
450- containsNestedCase#[skip:-9.2.99,reason:new string function added in 9.3]
456+ containsNestedCase
457+ required_capability: fn_contains
451458row a = "hello" | eval a_ll = CASE(contains(a, "ll"), "success","fail");
452459
453460a:keyword | a_ll:keyword
454461hello | success
455462;
456463
457- containsNestSubstring#[skip:-9.2.99,reason:new string function added in 9.3]
464+ containsNestSubstring
465+ required_capability: fn_contains
458466row a = "hello" | eval a_ll = contains(substring(a, 2), "ll");
459467
460468a:keyword | a_ll:boolean
461469hello | true
462470;
463471
464- containsWarnings#[skip:-9.2.99,reason:new string function added in 9.3]
472+ containsWarnings
473+ required_capability: fn_contains
465474
466475from hosts | where host=="epsilon" | eval l1 = contains(host_group, "ate"), l2 = contains(description, "ate") | keep l1, l2;
467476ignoreOrder:true
0 commit comments