Skip to content

Commit ff81cca

Browse files
committed
Fix EsqlCapabilities to refer to correctly refer to snapshot builds
1 parent 10d02c7 commit ff81cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,12 @@ public enum Cap {
360360
/**
361361
* QSTR function
362362
*/
363-
QSTR_FUNCTION(true),
363+
QSTR_FUNCTION(Build.current().isSnapshot()),
364364

365365
/**
366366
* MATCH function
367367
*/
368-
MATCH_FUNCTION(true),
368+
MATCH_FUNCTION(Build.current().isSnapshot()),
369369

370370
/**
371371
* Don't optimize CASE IS NOT NULL function by not requiring the fields to be not null as well.

0 commit comments

Comments
 (0)