Skip to content

Commit 90530e7

Browse files
Make sure we verify type on a present column to get expected result
1 parent bd93341 commit 90530e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,16 +1354,16 @@ public void testFullTextFunctionsOnlyAllowedInWhere() throws Exception {
13541354
}
13551355

13561356
public void testMatchFunctionOnlyAllowedInWhere() throws Exception {
1357-
checkFullTextFunctionsOnlyAllowedInWhere("Match", "match(first_name, \"Anna\")", "function");
1357+
checkFullTextFunctionsOnlyAllowedInWhere("Match", "match(title, \"Anna\")", "function");
13581358
}
13591359

13601360
public void testTermFunctionOnlyAllowedInWhere() throws Exception {
13611361
assumeTrue("term function capability not available", EsqlCapabilities.Cap.TERM_FUNCTION.isEnabled());
1362-
checkFullTextFunctionsOnlyAllowedInWhere("Term", "term(first_name, \"Anna\")", "function");
1362+
checkFullTextFunctionsOnlyAllowedInWhere("Term", "term(title, \"Anna\")", "function");
13631363
}
13641364

13651365
public void testMatchOperatornOnlyAllowedInWhere() throws Exception {
1366-
checkFullTextFunctionsOnlyAllowedInWhere(":", "first_name:\"Anna\"", "operator");
1366+
checkFullTextFunctionsOnlyAllowedInWhere(":", "title:\"Anna\"", "operator");
13671367
}
13681368

13691369
private void checkFullTextFunctionsOnlyAllowedInWhere(String functionName, String functionInvocation, String functionType)

0 commit comments

Comments
 (0)