Skip to content

Commit 24d7469

Browse files
more tests
1 parent dfbf6e7 commit 24d7469

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,13 @@ public void testDeprecatedIsNullFunction() {
919919
"line 1:22: is_null function is not supported anymore, please use 'is null'/'is not null' predicates instead"
920920
);
921921
}
922+
if (EsqlCapabilities.Cap.DOUBLE_PARAMETER_MARKERS_FOR_IDENTIFIERS.isEnabled()) {
923+
expectError(
924+
"from test | eval x = ??fn1(f)",
925+
List.of(paramAsConstant("fn1", "IS_NULL")),
926+
"line 1:22: is_null function is not supported anymore, please use 'is null'/'is not null' predicates instead"
927+
);
928+
}
922929
}
923930

924931
public void testMetadataFieldOnOtherSources() {

0 commit comments

Comments
 (0)