@@ -389,7 +389,7 @@ emp_no:integer | name:keyword
389389;
390390
391391
392- contains#[skip:-9.2.99,reason:new string function added in 9.3]
392+ contains
393393// tag::contains[]
394394ROW a = "hello"
395395| EVAL has_ll = CONTAINS(a, "ll")
@@ -402,28 +402,28 @@ hello | true
402402// end::contains-result[]
403403;
404404
405- containsFail#[skip:-9.2.99,reason:new string function added in 9.3]
405+ containsFail
406406row a = "hello" | eval a_ll = contains(a, "int");
407407
408408a:keyword | a_ll:boolean
409409hello | false
410410;
411411
412- containsLongerSubstr#[skip:-9.2.99,reason:new string function added in 9.3]
412+ containsLongerSubstr
413413row a = "hello" | eval a_ll = contains(a, "farewell");
414414
415415a:keyword | a_ll:boolean
416416hello | false
417417;
418418
419- containsSame#[skip:-9.2.99,reason:new string function added in 9.3]
419+ containsSame
420420row a = "hello" | eval a_ll = contains(a, "hello");
421421
422422a:keyword | a_ll:boolean
423423hello | true
424424;
425425
426- containsWithSubstring#[skip:-9.2.99,reason:new string function added in 9.3]
426+ containsWithSubstring
427427from 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;
428428ignoreOrder:true
429429
@@ -440,33 +440,33 @@ emp_no:integer | last_name:keyword | f_s:keyword | f_l:boolean
44044010010 | Piveteau | iveteau | true
441441;
442442
443- containsUtf16Emoji#[skip:-9.2.99,reason:new string function added in 9.3]
443+ containsUtf16Emoji
444444row a = "🐱Meow!🐶Woof!" | eval f_s = substring(a, 2) | eval f_l = contains(a, f_s);
445445
446446a:keyword | f_s:keyword | f_l:boolean
447447🐱Meow!🐶Woof! | Meow!🐶Woof! | true
448448;
449449
450- containsNestedCase#[skip:-9.2.99,reason:new string function added in 9.3]
450+ containsNestedCase
451451row a = "hello" | eval a_ll = CASE(contains(a, "ll"), "success","fail");
452452
453453a:keyword | a_ll:keyword
454454hello | success
455455;
456456
457- containsNestSubstring#[skip:-9.2.99,reason:new string function added in 9.3]
457+ containsNestSubstring
458458row a = "hello" | eval a_ll = contains(substring(a, 2), "ll");
459459
460460a:keyword | a_ll:boolean
461461hello | true
462462;
463463
464- containsWarnings#[skip:-9.2.99,reason:new string function added in 9.3]
464+ containsWarnings
465465
466466from hosts | where host=="epsilon" | eval l1 = contains(host_group, "ate"), l2 = contains(description, "ate") | keep l1, l2;
467467ignoreOrder:true
468- warning:Line 1:80 : evaluation of [contains(description, \"ate\")] failed, treating result as null. Only first 20 failures recorded.
469- warning:Line 1:80 : java.lang.IllegalArgumentException: single-value function encountered multi-value
468+ warning:Line 1:82 : evaluation of [contains(description, \"ate\")] failed, treating result as null. Only first 20 failures recorded.
469+ warning:Line 1:82 : java.lang.IllegalArgumentException: single-value function encountered multi-value
470470
471471l1:boolean | l2:boolean
472472true | null
0 commit comments