@@ -2093,17 +2093,6 @@ private static String exampleValueForType(DataType currentType) {
20932093 };
20942094 }
20952095
2096- public void testMultiMatchFunctionArgNotConstant () throws Exception {
2097- assertEquals (
2098- "1:19: second argument of [match(first_name, first_name)] must be a constant, received [first_name]" ,
2099- error ("from test | where match(first_name, first_name)" )
2100- );
2101- assertEquals (
2102- "1:59: second argument of [match(first_name, query)] must be a constant, received [query]" ,
2103- error ("from test | eval query = concat(\" first\" , \" name\" ) | where match(first_name, query)" )
2104- );
2105- }
2106-
21072096 // Should pass eventually once we lift some restrictions on full text search functions.
21082097 public void testFullTextFunctionCurrentlyUnsupportedBehaviour () throws Exception {
21092098 testFullTextFunctionsCurrentlyUnsupportedBehaviour ("match(first_name, \" Anna\" )" );
@@ -2155,6 +2144,7 @@ public void testFullTextFunctionsConstantQuery() throws Exception {
21552144 testFullTextFunctionsConstantQuery ("kql(first_name)" , "" );
21562145 if (EsqlCapabilities .Cap .MULTI_MATCH_FUNCTION .isEnabled ()) {
21572146 testFullTextFunctionsConstantQuery ("multi_match(first_name, first_name)" , "first" );
2147+ testFullTextFunctionsConstantQuery ("multi_match(concat(first_name, \" world\" ), first_name)" , "first" );
21582148 }
21592149 if (EsqlCapabilities .Cap .TERM_FUNCTION .isEnabled ()) {
21602150 testFullTextFunctionsConstantQuery ("term(first_name, last_name)" , "second" );
0 commit comments